@colijnit/sharedcomponents 258.1.4 → 258.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,7 @@ export declare class OrderTabComponent extends BaseStockComponent {
22
22
  readonly sendMethodDialogClicked: EventEmitter<PrintPriceStickers>;
23
23
  handleStickerClicked: EventEmitter<any>;
24
24
  showStockTransferChange: EventEmitter<boolean>;
25
+ handleTransactionClick: EventEmitter<any>;
25
26
  data: ArticleTransactionBo[];
26
27
  selectedRow: ArticleDetailsBo | null;
27
28
  articleDetails: ArticleDetailsBo;
@@ -32,4 +33,6 @@ export declare class OrderTabComponent extends BaseStockComponent {
32
33
  onRowSelected(row: ArticleDetailsBo): void;
33
34
  onShowStockTransferChange(show: boolean): void;
34
35
  protected getData(): Promise<void>;
36
+ handleTransactionNavigationClick(event: Event, transNr: string): void;
37
+ handleTransactionNavigation(transNr: string): void;
35
38
  }
@@ -20,6 +20,7 @@ export declare class StockTabsComponent implements OnInit {
20
20
  warehouses: StockManagementWarehouses[];
21
21
  readonly transferIconClicked: EventEmitter<ArticleStockBo>;
22
22
  readonly sendMethodDialogClicked: EventEmitter<PrintPriceStickers>;
23
+ handleTransactionClick: EventEmitter<any>;
23
24
  selectedWarehouse: StockManagementWarehouses;
24
25
  tabs: Tab[];
25
26
  historyTabs: Tab[];
@@ -29,6 +29,7 @@ export declare class StockComponent implements OnDestroy, OnInit {
29
29
  readonly okButtonClicked: EventEmitter<any>;
30
30
  readonly cancelButtonClicked: EventEmitter<any>;
31
31
  handleClick: EventEmitter<any>;
32
+ handleTransactionClick: EventEmitter<any>;
32
33
  updateGridData: EventEmitter<ArticleDetailsBo[]>;
33
34
  showClass(): boolean;
34
35
  loaded: boolean;
@@ -536,6 +536,11 @@
536
536
  position: relative;
537
537
  .simple-grid-column-header {
538
538
  border-width: 0;
539
+ .simple-grid-column-header-wrapper {
540
+ .simple-grid-column-header-label {
541
+ font-size: 10px;
542
+ }
543
+ }
539
544
  &:hover {
540
545
  .simple-grid-column-header-wrapper {
541
546
  position: unset;
@@ -582,9 +587,40 @@
582
587
  border-radius: 0;
583
588
  padding: 5px 10px;
584
589
  border-color: #DCE4EA;
590
+ gap: 5px;
591
+ .double-data {
592
+ display: flex;
593
+ flex-direction: row;
594
+ align-items: center;
595
+ gap: 5px;
596
+ &.link {
597
+ gap: 10px;
598
+ cursor: pointer;
599
+ span {
600
+ color: #1A73E8;
601
+ }
602
+ .co-icon {
603
+ svg [fill] {
604
+ fill: #1A73E8;
605
+ }
606
+ }
607
+ }
608
+ .co-icon {
609
+ width: 16px;
610
+ height: 16px;
611
+ }
612
+ span {
613
+ display: -webkit-box;
614
+ -webkit-line-clamp: 1;
615
+ -webkit-box-orient: vertical;
616
+ overflow: hidden;
617
+ text-overflow: ellipsis;
618
+ min-width: 8px;
619
+ }
620
+ }
585
621
  }
586
622
  .simple-grid-column-header-label {
587
- border-width: 0 0 1px 0;
623
+ border-width: 0;
588
624
  }
589
625
  .co-simple-grid-cell {
590
626
  .menu-icon {
@@ -1,5 +1,6 @@
1
1
  export declare class Dictionaries {
2
2
  text_de: {
3
+ ADDRESS_ADD: string;
3
4
  CHAPTER: string;
4
5
  CHARACTERISTIC: string;
5
6
  CHARACTERISTICS: string;
@@ -918,6 +919,7 @@ export declare class Dictionaries {
918
919
  SCHEDULE: string;
919
920
  SCHEMA: string;
920
921
  SCHEMA_NAME: string;
922
+ SHOW_ORDER: string;
921
923
  SCORING_OPPORTUNITY_PERC: string;
922
924
  SCREEN: string;
923
925
  SEARCH: string;
@@ -958,6 +960,8 @@ export declare class Dictionaries {
958
960
  MESSAGE_SAVE_CHANGES: string;
959
961
  MESSAGE_SAVE_CHANGES_TITLE: string;
960
962
  MESSAGE_STARTUP_VALIDATIONS_WARNING: string;
963
+ NO_IMAGE: string;
964
+ EXPECTED_DELIVERY_WEEK: string;
961
965
  SEARCH_ARTICLES: string;
962
966
  SEARCH_CATALOGUE: string;
963
967
  SEARCH_CONTACTS: string;
@@ -1404,6 +1408,7 @@ export declare class Dictionaries {
1404
1408
  TOTAL_PRICE_CONFIG: string;
1405
1409
  TOTAL_PRICE_CONFIG2: string;
1406
1410
  TOTAL_QUANTITY: string;
1411
+ QUANTITY: string;
1407
1412
  TO_ACCEPT: string;
1408
1413
  TO_BE_PLANNED: string;
1409
1414
  TO_BE_USED: string;
@@ -1577,6 +1582,9 @@ export declare class Dictionaries {
1577
1582
  ORDER_INFO: string;
1578
1583
  ORDER_KIND: string;
1579
1584
  PRODUCT_OPEN_ACTIVITIES: string;
1585
+ PASSWORD_FORGOTTEN_TEXT: string;
1586
+ PASSWORD_FORGOTTEN_TEXT_EXTRA: string;
1587
+ TOTAL_GROSS: string;
1580
1588
  };
1581
1589
  text_en: {
1582
1590
  "0_RESULTS_FOUND": string;
@@ -1710,6 +1718,11 @@ export declare class Dictionaries {
1710
1718
  BUILD_SELF: string;
1711
1719
  BULK: string;
1712
1720
  BULKLOCATION: string;
1721
+ BULK_3D_UPLOAD: string;
1722
+ BULK_3D_REF: string;
1723
+ BULK_3D_REF_DESC: string;
1724
+ BULK_3D_ZIP: string;
1725
+ BULK_3D_ZIP_DESC: string;
1713
1726
  BUSINESS_ADDRESS: string;
1714
1727
  BUSINESS_ADDRESS_ADDITION: string;
1715
1728
  BUSINESS_ADDRESS_ADDITION_NUMBER: string;
@@ -1988,6 +2001,7 @@ export declare class Dictionaries {
1988
2001
  CONFIGURATION_NOT_FINISHED_YET: string;
1989
2002
  CONFIGURATION_OVERVIEW: string;
1990
2003
  CONFIGURATION_YOURS: string;
2004
+ CONFIGURATION_LIBRARY: string;
1991
2005
  CONFIGURATOR_TEST: string;
1992
2006
  CONFIGURE: string;
1993
2007
  CONFIGURE_ARTICLE: string;
@@ -3500,6 +3514,7 @@ export declare class Dictionaries {
3500
3514
  PRICE_TAG_IMAGE: string;
3501
3515
  PRICE_TAG_INTER_BRANCH: string;
3502
3516
  PRICE_TAG_STICKERS: string;
3517
+ PRINT_PRICE_TAG_STICKERS: string;
3503
3518
  PRICE_TAG_TEXT: string;
3504
3519
  PRICE_TESTER: string;
3505
3520
  PRICE_TO: string;
@@ -4823,6 +4838,7 @@ export declare class Dictionaries {
4823
4838
  STOCKTAGSWINDOW: string;
4824
4839
  STOCK_ADJUSTMENTS: string;
4825
4840
  STOCK_AVAILABLE_CHANGE_WAREHOUSE_OR_COMMISSIONCODE: string;
4841
+ STOCK_COMPARISON: string;
4826
4842
  STOCK_DATE: string;
4827
4843
  STOCK_DETAILS: string;
4828
4844
  STOCK_DIFFERENCES: string;
@@ -4840,6 +4856,7 @@ export declare class Dictionaries {
4840
4856
  STOCK_NOT_EDITABLE: string;
4841
4857
  STOCK_NOT_EDITABLE_BECAUSE_OF_LOCKED_STOCKS: string;
4842
4858
  STOCK_NOT_EDITABLE_BECAUSE_OF_TRANSACTIONS: string;
4859
+ STOCK_OVERVIEW: string;
4843
4860
  STOCK_PARAMETERS: string;
4844
4861
  STOCK_REPLENISHMENT: string;
4845
4862
  STOCK_REMARK: string;
@@ -5242,6 +5259,7 @@ export declare class Dictionaries {
5242
5259
  BOOKING_SEARCH_GENERAL_INFO: string;
5243
5260
  BOOKING_SEARCH_GENERAL_INFO_CUSTOMER: string;
5244
5261
  BOOKING_SEARCH_GENERAL_INFO_SUPPLIER: string;
5262
+ BOOKING_SEARCH_GENERAL_INFO_INVOICE_CHECK: string;
5245
5263
  BOOKING_SELECTION: string;
5246
5264
  BOOK_AMOUNT: string;
5247
5265
  BOOK_DATA: string;
@@ -5658,6 +5676,7 @@ export declare class Dictionaries {
5658
5676
  SELECT_DRAWER: string;
5659
5677
  SELECT_EMAIL_ADDRESS: string;
5660
5678
  SELECT_EMPLOYER: string;
5679
+ SELECT_LINE_FIRST: string;
5661
5680
  SELECT_END_DATE: string;
5662
5681
  SELECT_EXISTING_CUSTOMER: string;
5663
5682
  SELECT_FOR_HAS_BEEN_PICKED: string;
@@ -6985,6 +7004,7 @@ export declare class Dictionaries {
6985
7004
  STYLE_GROUPING: string;
6986
7005
  SUBJECT: string;
6987
7006
  SUBMIT: string;
7007
+ SUBMIT_A_NEW_VOUCHER_CODE: string;
6988
7008
  SUBSCRIBE: string;
6989
7009
  SUBTOTAL: string;
6990
7010
  SUBTOTAL_ACCOUNT: string;
@@ -7074,6 +7094,7 @@ export declare class Dictionaries {
7074
7094
  ARTICLE_IMAGE: string;
7075
7095
  ARTICLE_INFO: string;
7076
7096
  ARTICLE_ORDER_DETAILS: string;
7097
+ ARTICLE_OPTION_LIBRARY: string;
7077
7098
  MARKED: string;
7078
7099
  MARKETING: string;
7079
7100
  MARKETING_CODE: string;
@@ -7654,6 +7675,7 @@ export declare class Dictionaries {
7654
7675
  FIRST_REC_DATE: string;
7655
7676
  FIRST_SICK_DAY: string;
7656
7677
  FRIDAY_ABBREVATION: string;
7678
+ FORMAT: string;
7657
7679
  FROM: string;
7658
7680
  FROM1: string;
7659
7681
  FROM_BOOKING_DATE: string;
@@ -8274,6 +8296,8 @@ export declare class Dictionaries {
8274
8296
  UPDATE_SINGLE_SEARCH_INDEX: string;
8275
8297
  UPDATE_STOCK: string;
8276
8298
  UPLOAD: string;
8299
+ UPLOADING: string;
8300
+ UPLOADED: string;
8277
8301
  UPLOAD_FILE: string;
8278
8302
  UPLOAD_IMAGE: string;
8279
8303
  UPLOAD_IMAGE_MSG: string;
@@ -8336,10 +8360,12 @@ export declare class Dictionaries {
8336
8360
  VOUCHERS: string;
8337
8361
  VOUCHER_AMOUNT: string;
8338
8362
  VOUCHER_CODE: string;
8363
+ VOUCHER_CODE_ALREADY_EXISTS: string;
8339
8364
  VOUCHER_CODE_EXISTS: string;
8340
8365
  VOUCHER_CODE_INFO: string;
8341
8366
  VOUCHER_DEACTIVE: string;
8342
8367
  VOUCHER_EXPIRED: string;
8368
+ VOUCHER_INFORMATION: string;
8343
8369
  VOUCHER_MAX_USED: string;
8344
8370
  VOUCHER_NO_BALANCE: string;
8345
8371
  VOUCHER_PAYMENTS: string;
@@ -8369,6 +8395,7 @@ export declare class Dictionaries {
8369
8395
  WAREHOUSE_NOT_IN_BRANCH: string;
8370
8396
  WAREHOUSE_NUMBER: string;
8371
8397
  WAREHOUSE_RECEIPT: string;
8398
+ WAREHOUSE_TRANSFERS: string;
8372
8399
  WAREHOUSE_REQUIRED: string;
8373
8400
  WARNING: string;
8374
8401
  WARNING_MESSAGE_DELETE_NOTIFICATION_LINKS: string;
@@ -8495,6 +8522,7 @@ export declare class Dictionaries {
8495
8522
  INPUT: string;
8496
8523
  INPUT_DISCOUNT: string;
8497
8524
  INPUT_NEW_LINE: string;
8525
+ INPUT_VOUCHER_CODE: string;
8498
8526
  INSERT_NEW_DRAWER: string;
8499
8527
  INSERT_NEW_FORM: string;
8500
8528
  INSERT_NEW_RELATION: string;
@@ -10440,6 +10468,9 @@ export declare class Dictionaries {
10440
10468
  SCHEMA_NAME: string;
10441
10469
  SCREEN: string;
10442
10470
  SEARCH: string;
10471
+ QUANTITY: string;
10472
+ SHOW_ORDER: string;
10473
+ NO_IMAGE: string;
10443
10474
  CURRENCY_CODE: string;
10444
10475
  CURRENCY_UNIT: string;
10445
10476
  CURRENT: string;
@@ -10907,6 +10938,12 @@ export declare class Dictionaries {
10907
10938
  ORDER_INFO: string;
10908
10939
  ORDER_KIND: string;
10909
10940
  PRODUCT_OPEN_ACTIVITIES: string;
10941
+ TOTAL_GROSS: string;
10942
+ DELIVERY_COSTS: string;
10943
+ PASSWORD_FORGOTTEN_TEXT: string;
10944
+ PASSWORD_FORGOTTEN_TEXT_EXTRA: string;
10945
+ EMAIL_OR_USERNAME: string;
10946
+ LOGIN: string;
10910
10947
  };
10911
10948
  text_nl: {
10912
10949
  "0_RESULTS_FOUND": string;
@@ -12040,6 +12077,7 @@ export declare class Dictionaries {
12040
12077
  ARTICLE_NUMBER: string;
12041
12078
  ARTICLE_NUMBER_SUPPLIER: string;
12042
12079
  ARTICLE_ORDER_DETAILS: string;
12080
+ ARTICLE_OPTION_LIBRARY: string;
12043
12081
  ARTICLE_PRODUCT_LIST: string;
12044
12082
  ARTICLE_SEARCH: string;
12045
12083
  ARTICLE_SEARCH_GENERAL_INFO: string;
@@ -12252,6 +12290,7 @@ export declare class Dictionaries {
12252
12290
  BOOKING_SEARCH_GENERAL_INFO_SUPPLIER: string;
12253
12291
  BOOKING_SEARCH_GENERAL_INFO_CUSTOMER: string;
12254
12292
  BOOKING_SEARCH_GENERAL_INFO: string;
12293
+ BOOKING_SEARCH_GENERAL_INFO_INVOICE_CHECK: string;
12255
12294
  BOOKING_SELECTION: string;
12256
12295
  BOOK_AMOUNT: string;
12257
12296
  BOOK_DATA: string;
@@ -12291,6 +12330,11 @@ export declare class Dictionaries {
12291
12330
  BUILD_SELF: string;
12292
12331
  BULK: string;
12293
12332
  BULKLOCATION: string;
12333
+ BULK_3D_UPLOAD: string;
12334
+ BULK_3D_REF: string;
12335
+ BULK_3D_REF_DESC: string;
12336
+ BULK_3D_ZIP: string;
12337
+ BULK_3D_ZIP_DESC: string;
12294
12338
  BUSINESS_ADDRESS: string;
12295
12339
  BUSINESS_ADDRESS_ADDITION: string;
12296
12340
  BUSINESS_ADDRESS_ADDITION_NUMBER: string;
@@ -12808,6 +12852,7 @@ export declare class Dictionaries {
12808
12852
  CONFIGURATION_OVERVIEW: string;
12809
12853
  CONFIGURATION_PRESET: string;
12810
12854
  CONFIGURATION_YOURS: string;
12855
+ CONFIGURATION_LIBRARY: string;
12811
12856
  CONFIGURATOR_TEST: string;
12812
12857
  CONFIGURE: string;
12813
12858
  CONFIGURE_ARTICLE: string;
@@ -13273,6 +13318,7 @@ export declare class Dictionaries {
13273
13318
  DEFAULT: string;
13274
13319
  DEFAULTS: string;
13275
13320
  DEFAULT_ANSWER: string;
13321
+ DEFAULT_ARTICLE: string;
13276
13322
  DEFAULT_ARTICLE_GROUP: string;
13277
13323
  DEFAULT_AVAILABLE: string;
13278
13324
  DEFAULT_CHOICE: string;
@@ -14206,6 +14252,7 @@ export declare class Dictionaries {
14206
14252
  FREQUENT_ABSENCE: string;
14207
14253
  FRIDAY: string;
14208
14254
  FRIDAY_ABBREVATION: string;
14255
+ FORMAT: string;
14209
14256
  FROM1: string;
14210
14257
  FROM: string;
14211
14258
  FROM_BOOKING_DATE: string;
@@ -14535,6 +14582,7 @@ export declare class Dictionaries {
14535
14582
  INPUT: string;
14536
14583
  INPUT_DISCOUNT: string;
14537
14584
  INPUT_NEW_LINE: string;
14585
+ INPUT_VOUCHER_CODE: string;
14538
14586
  INSERT_NEW_DRAWER: string;
14539
14587
  INSERT_NEW_FORM: string;
14540
14588
  INSERT_NEW_RELATION: string;
@@ -16581,6 +16629,7 @@ export declare class Dictionaries {
16581
16629
  PRICE_TAG_IMAGE: string;
16582
16630
  PRICE_TAG_INTER_BRANCH: string;
16583
16631
  PRICE_TAG_STICKERS: string;
16632
+ PRINT_PRICE_TAG_STICKERS: string;
16584
16633
  PRICE_TAG_TEXT: string;
16585
16634
  PRICE_TESTER: string;
16586
16635
  PRICE_TO: string;
@@ -17588,6 +17637,7 @@ export declare class Dictionaries {
17588
17637
  SELECT_ACCOUNT_MANAGER: string;
17589
17638
  SELECT_CONSULTANT: string;
17590
17639
  SELECT_EMPLOYER: string;
17640
+ SELECT_LINE_FIRST: string;
17591
17641
  SELECT_MAILING_CODE: string;
17592
17642
  SELECT_CASE_MANAGER: string;
17593
17643
  SELECT_MEDICAL_OFFICER: string;
@@ -18064,6 +18114,7 @@ export declare class Dictionaries {
18064
18114
  STOCK_ADJUSTMENTS: string;
18065
18115
  STOCK_AVAILABLE_CHANGE_WAREHOUSE_OR_COMMISSIONCODE: string;
18066
18116
  STOCK_BELOW_ZERO_TEXT: string;
18117
+ STOCK_COMPARISON: string;
18067
18118
  STOCK_DATE: string;
18068
18119
  STOCK_DETAILS: string;
18069
18120
  STOCK_DIFFERENCES: string;
@@ -18081,6 +18132,7 @@ export declare class Dictionaries {
18081
18132
  STOCK_NOT_EDITABLE: string;
18082
18133
  STOCK_NOT_EDITABLE_BECAUSE_OF_LOCKED_STOCKS: string;
18083
18134
  STOCK_NOT_EDITABLE_BECAUSE_OF_TRANSACTIONS: string;
18135
+ STOCK_OVERVIEW: string;
18084
18136
  STOCK_PARAMETERS: string;
18085
18137
  STOCK_REPLENISHMENT: string;
18086
18138
  STOCK_REMARK: string;
@@ -18132,6 +18184,7 @@ export declare class Dictionaries {
18132
18184
  STYLE_GROUPING: string;
18133
18185
  SUBJECT: string;
18134
18186
  SUBMIT: string;
18187
+ SUBMIT_A_NEW_VOUCHER_CODE: string;
18135
18188
  SUBSCRIBE: string;
18136
18189
  SUBTOTAL: string;
18137
18190
  SUBTOTAL_ACCOUNT: string;
@@ -18643,6 +18696,8 @@ export declare class Dictionaries {
18643
18696
  UPDATE_SINGLE_SEARCH_INDEX: string;
18644
18697
  UPDATE_STOCK: string;
18645
18698
  UPLOAD: string;
18699
+ UPLOADING: string;
18700
+ UPLOADED: string;
18646
18701
  UPLOAD_FILE: string;
18647
18702
  UPLOAD_IMAGE: string;
18648
18703
  UPLOAD_IMAGE_MSG: string;
@@ -18780,9 +18835,11 @@ export declare class Dictionaries {
18780
18835
  VOUCHER_AMOUNT: string;
18781
18836
  VOUCHER_CAN_ONLY_BE_USED_ONCE: string;
18782
18837
  VOUCHER_CODE: string;
18838
+ VOUCHER_CODE_ALREADY_EXISTS: string;
18783
18839
  VOUCHER_CODE_EXISTS: string;
18784
18840
  VOUCHER_CODE_INFO: string;
18785
18841
  VOUCHER_EXPIRED: string;
18842
+ VOUCHER_INFORMATION: string;
18786
18843
  VOUCHER_MAX_USED: string;
18787
18844
  VOUCHER_NO_BALANCE: string;
18788
18845
  VOUCHER_NOT_INVOICED: string;
@@ -18815,6 +18872,7 @@ export declare class Dictionaries {
18815
18872
  WAREHOUSE_RECEIPT: string;
18816
18873
  WAREHOUSE_REQUIRED: string;
18817
18874
  WAREHOUSE_ROWS: string;
18875
+ WAREHOUSE_TRANSFERS: string;
18818
18876
  WARNING: string;
18819
18877
  WARNING_MESSAGE_DELETE_NOTIFICATION_LINKS: string;
18820
18878
  WARNING_MESSAGE_DELETE_STANDARD_LIST: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "258.1.4",
3
+ "version": "258.1.5",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",
@@ -1 +0,0 @@
1
- (self.webpackChunk_colijnit_sharedcomponents=self.webpackChunk_colijnit_sharedcomponents||[]).push([[358],{23358:function(ht){ht.exports=function(){"use strict";function w(a){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(a)}function j(a,n){return(j=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s})(a,n)}function Et(){if("undefined"==typeof Reflect||!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(a){return!1}}function Z(a,n,o){return(Z=Et()?Reflect.construct:function(c,b,y){var D=[null];D.push.apply(D,b);var X=new(Function.bind.apply(c,D));return y&&j(X,y.prototype),X}).apply(null,arguments)}function R(a){return function(a){if(Array.isArray(a))return ce(a)}(a)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||function(a,n){if(a){if("string"==typeof a)return ce(a,n);var o=Object.prototype.toString.call(a).slice(8,-1);if("Object"===o&&a.constructor&&(o=a.constructor.name),"Map"===o||"Set"===o)return Array.from(a);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ce(a,n)}}(a)||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 ce(a,n){(null==n||n>a.length)&&(n=a.length);for(var o=0,s=new Array(n);o<n;o++)s[o]=a[o];return s}var bt=Object.hasOwnProperty,ze=Object.setPrototypeOf,Ot=Object.isFrozen,Rt=Object.getPrototypeOf,Lt=Object.getOwnPropertyDescriptor,E=Object.freeze,g=Object.seal,Mt=Object.create,Ge="undefined"!=typeof Reflect&&Reflect,J=Ge.apply,me=Ge.construct;J||(J=function(n,o,s){return n.apply(o,s)}),E||(E=function(n){return n}),g||(g=function(n){return n}),me||(me=function(n,o){return Z(n,R(o))});var a,Dt=S(Array.prototype.forEach),We=S(Array.prototype.pop),Y=S(Array.prototype.push),Q=S(String.prototype.toLowerCase),pe=S(String.prototype.toString),Be=S(String.prototype.match),L=S(String.prototype.replace),Nt=S(String.prototype.indexOf),wt=S(String.prototype.trim),_=S(RegExp.prototype.test),de=(a=TypeError,function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return me(a,o)});function S(a){return function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return J(a,n,s)}}function l(a,n,o){var s;o=null!==(s=o)&&void 0!==s?s:Q,ze&&ze(a,null);for(var c=n.length;c--;){var b=n[c];if("string"==typeof b){var y=o(b);y!==b&&(Ot(n)||(n[c]=y),b=y)}a[b]=!0}return a}function x(a){var o,n=Mt(null);for(o in a)!0===J(bt,a,[o])&&(n[o]=a[o]);return n}function ee(a,n){for(;null!==a;){var o=Lt(a,n);if(o){if(o.get)return S(o.get);if("function"==typeof o.value)return S(o.value)}a=Rt(a)}return function(c){return console.warn("fallback value for",c),null}}var $e=E(["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=E(["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"]),_e=E(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),It=E(["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"]),ve=E(["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"]),xt=E(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),je=E(["#text"]),Ye=E(["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"]),he=E(["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"]),Xe=E(["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"]),te=E(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kt=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pt=g(/<%[\w\W]*|[\w\W]*%>/gm),Ft=g(/\${[\w\W]*}/gm),Ut=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ht=g(/^aria-[\-\w]+$/),zt=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gt=g(/^(?:\w+script|data):/i),Wt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bt=g(/^html$/i),$t=g(/^[a-z][.\w]*(-[.\w]+)+$/i),jt=function(){return"undefined"==typeof window?null:window},Yt=function(n,o){if("object"!==w(n)||"function"!=typeof n.createPolicy)return null;var s=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(s=o.currentScript.getAttribute(c));var b="dompurify"+(s?"#"+s:"");try{return n.createPolicy(b,{createHTML:function(D){return D},createScriptURL:function(D){return D}})}catch(y){return console.warn("TrustedTypes policy "+b+" could not be created."),null}};return function Ve(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jt(),n=function(e){return Ve(e)};if(n.version="2.5.8",n.removed=[],!a||!a.document||9!==a.document.nodeType)return n.isSupported=!1,n;var o=a.document,s=a.document,c=a.DocumentFragment,b=a.HTMLTemplateElement,y=a.Node,D=a.Element,k=a.NodeFilter,X=a.NamedNodeMap,Vt=void 0===X?a.NamedNodeMap||a.MozNamedAttrMap:X,qt=a.HTMLFormElement,Kt=a.DOMParser,re=a.trustedTypes,ae=D.prototype,Zt=ee(ae,"cloneNode"),Jt=ee(ae,"nextSibling"),Qt=ee(ae,"childNodes"),Ee=ee(ae,"parentNode");if("function"==typeof b){var Ae=s.createElement("template");Ae.content&&Ae.content.ownerDocument&&(s=Ae.content.ownerDocument)}var M=Yt(re,o),ye=M?M.createHTML(""):"",ge=s.implementation,er=s.createNodeIterator,tr=s.createDocumentFragment,rr=s.getElementsByTagName,ar=o.importNode,qe={};try{qe=x(s).documentMode?s.documentMode:{}}catch(i){}var N={};n.isSupported="function"==typeof Ee&&ge&&void 0!==ge.createHTMLDocument&&9!==qe;var F,T,Se=kt,be=Pt,Oe=Ft,nr=Ut,ir=Ht,or=Gt,Ke=Wt,lr=$t,Re=zt,p=null,Ze=l({},[].concat(R($e),R(Te),R(_e),R(ve),R(je))),d=null,Je=l({},[].concat(R(Ye),R(he),R(Xe),R(te))),f=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}})),V=null,Le=null,Qe=!0,Me=!0,et=!1,tt=!0,H=!1,De=!0,P=!1,Ne=!1,we=!1,z=!1,ie=!1,oe=!1,rt=!0,at=!1,sr="user-content-",Ce=!0,q=!1,G={},W=null,nt=l({},["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"]),it=null,ot=l({},["audio","video","img","source","image","track"]),Ie=null,lt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),le="http://www.w3.org/1998/Math/MathML",se="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml",B=C,xe=!1,ke=null,ur=l({},[le,se,C],pe),fr=["application/xhtml+xml","text/html"],cr="text/html",$=null,mr=s.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},Pe=function(e){$&&$===e||((!e||"object"!==w(e))&&(e={}),e=x(e),F=F=-1===fr.indexOf(e.PARSER_MEDIA_TYPE)?cr:e.PARSER_MEDIA_TYPE,T="application/xhtml+xml"===F?pe:Q,p="ALLOWED_TAGS"in e?l({},e.ALLOWED_TAGS,T):Ze,d="ALLOWED_ATTR"in e?l({},e.ALLOWED_ATTR,T):Je,ke="ALLOWED_NAMESPACES"in e?l({},e.ALLOWED_NAMESPACES,pe):ur,Ie="ADD_URI_SAFE_ATTR"in e?l(x(lt),e.ADD_URI_SAFE_ATTR,T):lt,it="ADD_DATA_URI_TAGS"in e?l(x(ot),e.ADD_DATA_URI_TAGS,T):ot,W="FORBID_CONTENTS"in e?l({},e.FORBID_CONTENTS,T):nt,V="FORBID_TAGS"in e?l({},e.FORBID_TAGS,T):{},Le="FORBID_ATTR"in e?l({},e.FORBID_ATTR,T):{},G="USE_PROFILES"in e&&e.USE_PROFILES,Qe=!1!==e.ALLOW_ARIA_ATTR,Me=!1!==e.ALLOW_DATA_ATTR,et=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,H=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,P=e.WHOLE_DOCUMENT||!1,z=e.RETURN_DOM||!1,ie=e.RETURN_DOM_FRAGMENT||!1,oe=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,rt=!1!==e.SANITIZE_DOM,at=e.SANITIZE_NAMED_PROPS||!1,Ce=!1!==e.KEEP_CONTENT,q=e.IN_PLACE||!1,Re=e.ALLOWED_URI_REGEXP||Re,B=e.NAMESPACE||C,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(Me=!1),ie&&(z=!0),G&&(p=l({},R(je)),d=[],!0===G.html&&(l(p,$e),l(d,Ye)),!0===G.svg&&(l(p,Te),l(d,he),l(d,te)),!0===G.svgFilters&&(l(p,_e),l(d,he),l(d,te)),!0===G.mathMl&&(l(p,ve),l(d,Xe),l(d,te))),e.ADD_TAGS&&(p===Ze&&(p=x(p)),l(p,e.ADD_TAGS,T)),e.ADD_ATTR&&(d===Je&&(d=x(d)),l(d,e.ADD_ATTR,T)),e.ADD_URI_SAFE_ATTR&&l(Ie,e.ADD_URI_SAFE_ATTR,T),e.FORBID_CONTENTS&&(W===nt&&(W=x(W)),l(W,e.FORBID_CONTENTS,T)),Ce&&(p["#text"]=!0),P&&l(p,["html","head","body"]),p.table&&(l(p,["tbody"]),delete V.tbody),E&&E(e),$=e)},ut=l({},["mi","mo","mn","ms","mtext"]),ft=l({},["annotation-xml"]),pr=l({},["title","style","font","a","script"]),ue=l({},Te);l(ue,_e),l(ue,It);var Fe=l({},ve);l(Fe,xt);var dr=function(e){var t=Ee(e);(!t||!t.tagName)&&(t={namespaceURI:B,tagName:"template"});var r=Q(e.tagName),u=Q(t.tagName);return!!ke[e.namespaceURI]&&(e.namespaceURI===se?t.namespaceURI===C?"svg"===r:t.namespaceURI===le?"svg"===r&&("annotation-xml"===u||ut[u]):Boolean(ue[r]):e.namespaceURI===le?t.namespaceURI===C?"math"===r:t.namespaceURI===se?"math"===r&&ft[u]:Boolean(Fe[r]):e.namespaceURI===C?!(t.namespaceURI===se&&!ft[u]||t.namespaceURI===le&&!ut[u])&&!Fe[r]&&(pr[r]||!ue[r]):!("application/xhtml+xml"!==F||!ke[e.namespaceURI]))},O=function(e){Y(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ye}catch(r){e.remove()}}},fe=function(e,t){try{Y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!d[e])if(z||ie)try{O(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},ct=function(e){var t,r;if(we)e="<remove></remove>"+e;else{var u=Be(e,/^[\r\n\t ]+/);r=u&&u[0]}"application/xhtml+xml"===F&&B===C&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var A=M?M.createHTML(e):e;if(B===C)try{t=(new Kt).parseFromString(A,F)}catch(v){}if(!t||!t.documentElement){t=ge.createDocument(B,"template",null);try{t.documentElement.innerHTML=xe?ye:A}catch(v){}}var h=t.body||t.documentElement;return e&&r&&h.insertBefore(s.createTextNode(r),h.childNodes[0]||null),B===C?rr.call(t,P?"html":"body")[0]:P?t.documentElement:h},mt=function(e){return er.call(e.ownerDocument||e,e,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT|k.SHOW_PROCESSING_INSTRUCTION|k.SHOW_CDATA_SECTION,null,!1)},Ue=function(e){return e instanceof qt&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof Vt)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},K=function(e){return"object"===w(y)?e instanceof y:e&&"object"===w(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},I=function(e,t,r){!N[e]||Dt(N[e],function(u){u.call(n,t,r,$)})},pt=function(e){var t;if(I("beforeSanitizeElements",e,null),Ue(e)||_(/[\u0080-\uFFFF]/,e.nodeName))return O(e),!0;var r=T(e.nodeName);if(I("uponSanitizeElement",e,{tagName:r,allowedTags:p}),e.hasChildNodes()&&!K(e.firstElementChild)&&(!K(e.content)||!K(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent)||"select"===r&&_(/<template/i,e.innerHTML)||7===e.nodeType||De&&8===e.nodeType&&_(/<[/\w]/g,e.data))return O(e),!0;if(!p[r]||V[r]){if(!V[r]&&Tt(r)&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,r)||f.tagNameCheck instanceof Function&&f.tagNameCheck(r)))return!1;if(Ce&&!W[r]){var u=Ee(e)||e.parentNode,A=Qt(e)||e.childNodes;if(A&&u)for(var v=A.length-1;v>=0;--v){var U=Zt(A[v],!0);U.__removalCount=(e.__removalCount||0)+1,u.insertBefore(U,Jt(e))}}return O(e),!0}return e instanceof D&&!dr(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&_(/<\/no(script|embed|frames)/i,e.innerHTML)?(O(e),!0):(H&&3===e.nodeType&&(t=L(t=e.textContent,Se," "),t=L(t,be," "),t=L(t,Oe," "),e.textContent!==t&&(Y(n.removed,{element:e.cloneNode()}),e.textContent=t)),I("afterSanitizeElements",e,null),!1)},dt=function(e,t,r){if(rt&&("id"===t||"name"===t)&&(r in s||r in mr))return!1;if((!Me||Le[t]||!_(nr,t))&&(!Qe||!_(ir,t)))if(!d[t]||Le[t]){if(!(Tt(e)&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&_(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||"is"===t&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,r)||f.tagNameCheck instanceof Function&&f.tagNameCheck(r))))return!1}else if(!Ie[t]&&!_(Re,L(r,Ke,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Nt(r,"data:")||!it[e])&&(!et||_(or,L(r,Ke,"")))&&r)return!1;return!0},Tt=function(e){return"annotation-xml"!==e&&Be(e,lr)},_t=function(e){var t,r,u,A;I("beforeSanitizeAttributes",e,null);var h=e.attributes;if(h&&!Ue(e)){var v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};for(A=h.length;A--;){var m=(t=h[A]).name,He=t.namespaceURI;if(r="value"===m?t.value:wt(t.value),u=T(m),v.attrName=u,v.attrValue=r,v.keepAttr=!0,v.forceKeepAttr=void 0,I("uponSanitizeAttribute",e,v),r=v.attrValue,!v.forceKeepAttr&&(fe(m,e),v.keepAttr)){if(!tt&&_(/\/>/i,r)){fe(m,e);continue}H&&(r=L(r,Se," "),r=L(r,be," "),r=L(r,Oe," "));var vt=T(e.nodeName);if(dt(vt,u,r)){if(at&&("id"===u||"name"===u)&&(fe(m,e),r=sr+r),De&&_(/((--!?|])>)|<\/(style|title)/i,r)){fe(m,e);continue}if(M&&"object"===w(re)&&"function"==typeof re.getAttributeType&&!He)switch(re.getAttributeType(vt,u)){case"TrustedHTML":r=M.createHTML(r);break;case"TrustedScriptURL":r=M.createScriptURL(r)}try{He?e.setAttributeNS(He,m,r):e.setAttribute(m,r),Ue(e)?O(e):We(n.removed)}catch(_r){}}}}I("afterSanitizeAttributes",e,null)}},Tr=function i(e){var t,r=mt(e);for(I("beforeSanitizeShadowDOM",e,null);t=r.nextNode();)I("uponSanitizeShadowNode",t,null),pt(t),_t(t),t.content instanceof c&&i(t.content);I("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(i){var t,r,u,A,h,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((xe=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!K(i)){if("function"!=typeof i.toString)throw de("toString is not a function");if("string"!=typeof(i=i.toString()))throw de("dirty is not a string, aborting")}if(!n.isSupported){if("object"===w(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof i)return a.toStaticHTML(i);if(K(i))return a.toStaticHTML(i.outerHTML)}return i}if(Ne||Pe(e),n.removed=[],"string"==typeof i&&(q=!1),q){if(i.nodeName){var v=T(i.nodeName);if(!p[v]||V[v])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof y)1===(r=(t=ct("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?t=r:t.appendChild(r);else{if(!z&&!H&&!P&&-1===i.indexOf("<"))return M&&oe?M.createHTML(i):i;if(!(t=ct(i)))return z?null:oe?ye:""}t&&we&&O(t.firstChild);for(var U=mt(q?i:t);u=U.nextNode();)3===u.nodeType&&u===A||(pt(u),_t(u),u.content instanceof c&&Tr(u.content),A=u);if(A=null,q)return i;if(z){if(ie)for(h=tr.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return(d.shadowroot||d.shadowrootmod)&&(h=ar.call(o,h,!0)),h}var m=P?t.outerHTML:t.innerHTML;return P&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&_(Bt,t.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+m),H&&(m=L(m,Se," "),m=L(m,be," "),m=L(m,Oe," ")),M&&oe?M.createHTML(m):m},n.setConfig=function(i){Pe(i),Ne=!0},n.clearConfig=function(){$=null,Ne=!1},n.isValidAttribute=function(i,e,t){$||Pe({});var r=T(i),u=T(e);return dt(r,u,t)},n.addHook=function(i,e){"function"==typeof e&&(N[i]=N[i]||[],Y(N[i],e))},n.removeHook=function(i){if(N[i])return We(N[i])},n.removeHooks=function(i){N[i]&&(N[i]=[])},n.removeAllHooks=function(){N={}},n}()}()}}]);