halo-pc 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/components/business/index.d.ts +8 -8
- package/esm/components/controls/Text.vue.d.ts +1 -1
- package/esm/components/index.d.ts +8 -8
- package/esm/components/layouts/index.d.ts +2 -2
- package/esm/components/lists/Tree.vue.d.ts +1 -1
- package/esm/components/lists/index.d.ts +1 -1
- package/esm/components/pages/Single.vue.d.ts +1 -1
- package/esm/components/pagings/Article.vue.d.ts +1 -1
- package/esm/components/pagings/DataExport.vue.d.ts +1 -1
- package/esm/components/pagings/DataImport.vue.d.ts +1 -1
- package/esm/components/pagings/Index.vue.d.ts +4 -4
- package/esm/components/pagings/SearchFooter.vue.d.ts +1 -1
- package/esm/components/pagings/Table.vue.d.ts +3 -3
- package/esm/components/pagings/index.d.ts +1 -1
- package/esm/components/partials/Detail.vue.d.ts +1 -1
- package/esm/components/partials/Update.vue.d.ts +1 -1
- package/esm/components/singles/index.d.ts +1 -1
- package/esm/components/texts/Autocomplete.vue.d.ts +1 -1
- package/esm/components/texts/CSharp.vue.d.ts +1 -1
- package/esm/components/texts/Cascader.vue.d.ts +1 -1
- package/esm/components/texts/Checkbox.vue.d.ts +1 -1
- package/esm/components/texts/Code.vue.d.ts +1 -1
- package/esm/components/texts/Color.vue.d.ts +1 -1
- package/esm/components/texts/Compare.vue.d.ts +1 -1
- package/esm/components/texts/Copy.vue.d.ts +1 -1
- package/esm/components/texts/Date.vue.d.ts +1 -1
- package/esm/components/texts/DateRange.vue.d.ts +1 -1
- package/esm/components/texts/DateTime.vue.d.ts +1 -1
- package/esm/components/texts/Decimal.vue.d.ts +1 -1
- package/esm/components/texts/Dictionary.vue.d.ts +1 -1
- package/esm/components/texts/Email.vue.d.ts +1 -1
- package/esm/components/texts/Index.vue.d.ts +1 -1
- package/esm/components/texts/Int.vue.d.ts +1 -1
- package/esm/components/texts/Markdown.vue.d.ts +1 -1
- package/esm/components/texts/Month.vue.d.ts +1 -1
- package/esm/components/texts/Password.vue.d.ts +1 -1
- package/esm/components/texts/Progress.vue.d.ts +1 -1
- package/esm/components/texts/Radio.vue.d.ts +1 -1
- package/esm/components/texts/Rate.vue.d.ts +1 -1
- package/esm/components/texts/RichText.vue.d.ts +1 -1
- package/esm/components/texts/Select.vue.d.ts +1 -1
- package/esm/components/texts/Switch.vue.d.ts +1 -1
- package/esm/components/texts/Text.vue.d.ts +1 -1
- package/esm/components/texts/TextLink.vue.d.ts +1 -1
- package/esm/components/texts/Textarea.vue.d.ts +1 -1
- package/esm/components/texts/Upload.vue.d.ts +1 -1
- package/esm/components/texts/Year.vue.d.ts +1 -1
- package/esm/main.d.ts +5 -5
- package/esm/plugins/index.d.ts +1 -0
- package/esm/sdks/commons/HaTable.vue.d.ts +1 -1
- package/esm/sdks/commons/index.d.ts +1 -59
- package/esm/sdks/globals/HaWindow.vue.d.ts +4 -4
- package/esm/sdks/globals/index.d.ts +4 -0
- package/esm/sdks/index.d.ts +4 -7
- package/esm/services/MessageService.d.ts +9 -8
- package/esm/services/index.d.ts +1 -3
- package/esm/stores/index.d.ts +1 -7
- package/package.json +17 -21
- package/dist/Article-D4qXG55i.js +0 -195
- package/dist/ArticleFooter-BAf1rKUX.js +0 -78
- package/dist/Autocomplete-BOxOjTFs.js +0 -51
- package/dist/Autocomplete-BdKldPfG.js +0 -27
- package/dist/Autocomplete-CV4D7693.js +0 -52
- package/dist/CSharp-D_fhmKNi.js +0 -27
- package/dist/Calender-B1bjnNK5.js +0 -10
- package/dist/Callback-DjHhgx-q.js +0 -20
- package/dist/Cascader-B6OhUHVe.js +0 -44
- package/dist/Cascader-K4fh1YbW.js +0 -83
- package/dist/Checkbox-CkfHA52y.js +0 -27
- package/dist/Checkbox-D928Sp6S.js +0 -69
- package/dist/Code-3c6-02U1.js +0 -39
- package/dist/Code-BTDq_0B6.js +0 -57
- package/dist/Code-C4HjQm82.js +0 -28
- package/dist/Code-RAklwsI8.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-zfBqeJue.js +0 -62
- package/dist/Color-CfXtJFUo.js +0 -22
- package/dist/Color-Da69pnQg.js +0 -34
- package/dist/Column-D9Kx2OQ2.js +0 -68
- package/dist/Comment-DCArar0n.js +0 -101
- package/dist/Compare-7rmSR2Vp.js +0 -57
- package/dist/Compare-D-WXTccH.js +0 -27
- package/dist/Copy-DkFCsKxT.js +0 -43
- package/dist/Custom-a5LNK1fz.js +0 -52
- package/dist/DataExport-CNacxrr6.js +0 -4
- package/dist/DataExport.vue_vue_type_script_setup_true_lang-Dnt8MHYd.js +0 -111
- package/dist/DataImport-Dm86g3rr.js +0 -4
- package/dist/DataImport.vue_vue_type_script_setup_true_lang-DieNCc_-.js +0 -172
- package/dist/Date-2zsvAlTg.js +0 -27
- package/dist/Date-B9tmMFuT.js +0 -36
- package/dist/DateRange-DM7_QCBw.js +0 -60
- package/dist/DateRange-DrYK_l0Y.js +0 -19
- package/dist/DateTime-Ce1NnyqQ.js +0 -37
- package/dist/DateTime-DMECNCs4.js +0 -27
- package/dist/DateTimeRange-Cr_pV6VX.js +0 -61
- package/dist/Daterange-b5lnauDR.js +0 -60
- package/dist/Decimal-C38-N54B.js +0 -36
- package/dist/Decimal-DtTHo5uv.js +0 -27
- package/dist/Delete-CJYIlwyA.js +0 -55
- package/dist/Detail-vOrhBm_q.js +0 -69
- package/dist/Dictionary-B9oe1_S6.js +0 -58
- package/dist/Email-BGc1mV9s.js +0 -47
- package/dist/Email-BKW9GRcH.js +0 -19
- package/dist/File-Bmnp2oNs.js +0 -157
- package/dist/Image-8u9oIiGp.js +0 -9
- package/dist/Index-9AheG9bs.js +0 -4
- package/dist/Index-BNXlbQ4E.js +0 -4
- package/dist/Index-B_P8rY63.js +0 -4
- package/dist/Index-CS11p-lU.js +0 -73
- package/dist/Index-CSqSf17l.js +0 -4
- package/dist/Index-DiMWhBFC.js +0 -4
- package/dist/Index-DtM8VZwV.js +0 -170
- package/dist/Index-ujUgBmOq.js +0 -4
- package/dist/Index.vue_vue_type_script_setup_true_lang-BPj8s6sN.js +0 -68
- package/dist/Index.vue_vue_type_script_setup_true_lang-CKE6hz5m.js +0 -75
- package/dist/Index.vue_vue_type_script_setup_true_lang-gv23r-9D.js +0 -36
- package/dist/Index.vue_vue_type_style_index_0_lang-CqDJToNR.js +0 -112
- package/dist/Install-DU27ycRi.js +0 -129
- package/dist/Int-AE2e9jyG.js +0 -37
- package/dist/Int-B-t8edhd.js +0 -19
- package/dist/Int-BuRUWpC5.js +0 -44
- package/dist/List-DmUA_Qjf.js +0 -75
- package/dist/Maintaince-BxK8vEL8.js +0 -15
- package/dist/Markdown-BzMP3m7o.js +0 -37
- package/dist/Markdown-DuJREXXg.js +0 -27
- package/dist/Month-BVKakHhk.js +0 -36
- package/dist/Month-D366v-0Q.js +0 -27
- package/dist/Month-D9r3wt_e.js +0 -37
- package/dist/Normal-CPn8hp3t.js +0 -253
- package/dist/Paging-D1DvQER2.js +0 -93
- package/dist/PagingHeader-CBXHiUXR.js +0 -140
- package/dist/PagingRow-tny-wHwu.js +0 -66
- package/dist/Password-DuyYEgzR.js +0 -55
- package/dist/Password-yHtlY-Qa.js +0 -24
- package/dist/Progress-C3D821AQ.js +0 -34
- package/dist/Progress-CKVzMO-W.js +0 -25
- package/dist/QueryApi-B7_jCs5e.js +0 -13
- package/dist/Racebar-ng-7K86M.js +0 -165
- package/dist/Radio-DW7t0gUT.js +0 -27
- package/dist/Radio-DkcBKBvX.js +0 -47
- package/dist/Rate-B7jKTFKT.js +0 -34
- package/dist/Rate-BmC4gw_0.js +0 -34
- package/dist/Register-oG9MMCqJ.js +0 -201
- package/dist/RichText-Bk0Msyhl.js +0 -22
- package/dist/RichText-Bpw54w7L.js +0 -104
- package/dist/SearchFooter-TOtn9psJ.js +0 -4
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-aQwf-Jl6.js +0 -55
- package/dist/SearchForm-tCH9rcrw.js +0 -4
- package/dist/SearchForm.vue_vue_type_style_index_0_lang-U5f9oExf.js +0 -148
- package/dist/Select-CGOTSJVh.js +0 -114
- package/dist/Select-DhpaFdqx.js +0 -27
- package/dist/Select-Dz8akTqG.js +0 -80
- package/dist/Single-BETJuNyR.js +0 -322
- package/dist/Statistic-B_mgjlnr.js +0 -76
- package/dist/Statistic-DzF-1c5_.js +0 -160
- package/dist/Stock-9Ja_G9Dg.js +0 -28
- package/dist/Stock-CfI244Nf.js +0 -4
- package/dist/Stock.vue_vue_type_style_index_0_lang-DbTd0pjx.js +0 -301
- package/dist/Switch-DhFaku5L.js +0 -50
- package/dist/Switch-HAej2klZ.js +0 -27
- package/dist/Table-Bes5hPBu.js +0 -238
- package/dist/Table-Q1QCTkqH.js +0 -317
- package/dist/Text-CLMVbFyi.js +0 -52
- package/dist/Text-DgINICKw.js +0 -4
- package/dist/Text-EQNK15_K.js +0 -51
- package/dist/Text.vue_vue_type_style_index_0_lang-Bw2lRC5n.js +0 -55
- package/dist/TextLink-o-e-724y.js +0 -65
- package/dist/Textarea-2hZMIygc.js +0 -28
- package/dist/Textarea-D9TgF9ig.js +0 -37
- package/dist/Time-CRVru-6c.js +0 -36
- package/dist/Timeline-B2unIcOQ.js +0 -56
- package/dist/Tree-Bt7FIc2Z.js +0 -120
- package/dist/Tree-DO2eaZZT.js +0 -294
- package/dist/TreeNode-k4qKfs3W.js +0 -37
- package/dist/Tree_Old-h__WmqFA.js +0 -11
- package/dist/Update-BH1SivST.js +0 -64
- package/dist/UpdateChild-CA0P17tZ.js +0 -85
- package/dist/Upload-Bhp3QMff.js +0 -70
- package/dist/Upload-Cw7Ln3cd.js +0 -146
- package/dist/UploadApi-DdQy8bcl.js +0 -17
- package/dist/Year-DBuvSBYN.js +0 -40
- package/dist/Year-Q2Y-HAuh.js +0 -27
- package/dist/main-iF34LtMW.js +0 -6023
- package/dist/main.js +0 -91
- package/dist/style.css +0 -1
- package/dist/vendor-@intlify-BISCQg1h.js +0 -2189
- package/dist/vendor-@monaco-editor-DKC4UNw_.js +0 -258
- package/dist/vendor-@vue-aVYGocXp.js +0 -93
- package/dist/vendor-axios-ud9O0vdJ.js +0 -1670
- package/dist/vendor-clipboard-BqjesuiY.js +0 -521
- package/dist/vendor-clone-BPtCWdXG.js +0 -134
- package/dist/vendor-crypto-js-ftX_aBC-.js +0 -4995
- package/dist/vendor-element-plus-Z7vJFrsh.js +0 -456
- package/dist/vendor-file-saver-CytTIJ-3.js +0 -74
- package/dist/vendor-intro.js-CZkClzQO.js +0 -1695
- package/dist/vendor-moment-h96o7c8I.js +0 -2578
- package/dist/vendor-pinia-yrN6kSxh.js +0 -861
- package/dist/vendor-sprintf-js-BPTdvBYM.js +0 -148
- package/dist/vendor-state-local-CEworIRt.js +0 -131
- package/dist/vendor-underscore-DVTek3G4.js +0 -1070
- package/dist/vendor-underscore.string-BEHfJwHl.js +0 -425
- package/dist/vendor-util-deprecate-DzpNkCzj.js +0 -28
- package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
- package/dist/vendor-vue-i18n-C3KH15Qn.js +0 -1670
- package/esm/components/business/HoCondition.vue.d.ts +0 -18
- package/esm/components/business/HoCrud.vue.d.ts +0 -29
- package/esm/components/business/HoDrawer.vue.d.ts +0 -24
- package/esm/components/business/HoDriver.vue.d.ts +0 -52
- package/esm/components/business/HoFeedback.vue.d.ts +0 -8
- package/esm/components/business/HoForm.vue.d.ts +0 -23
- package/esm/components/business/HoSwitch.vue.d.ts +0 -24
- package/esm/components/business/HoWelcome.vue.d.ts +0 -8
- package/esm/drivers/IDriver.d.ts +0 -10
- package/esm/drivers/cdns/Cdn.d.ts +0 -13
- package/esm/drivers/cdns/CdnFactory.d.ts +0 -11
- package/esm/drivers/cdns/ICdn.d.ts +0 -30
- package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -8
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -11
- package/esm/drivers/cdns/implements/LocalCdn.d.ts +0 -8
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -8
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -8
- package/esm/drivers/driver-helper.d.ts +0 -36
- package/esm/drivers/excels/ExcelFactory.d.ts +0 -11
- package/esm/drivers/excels/IExcel.d.ts +0 -18
- package/esm/drivers/excels/implements/XlsxExcel.d.ts +0 -10
- package/esm/drivers/explainers/Explainer.d.ts +0 -4
- package/esm/drivers/explainers/ExplainerFactory.d.ts +0 -1
- package/esm/drivers/explainers/IExplainer.d.ts +0 -3
- package/esm/drivers/explainers/implement/JsonExplainer.d.ts +0 -4
- package/esm/drivers/features/FeatureFactory.d.ts +0 -11
- package/esm/drivers/features/IFeature.d.ts +0 -23
- package/esm/drivers/features/implements/ExpressionFeature.d.ts +0 -12
- package/esm/drivers/features/implements/I18NFeature.d.ts +0 -12
- package/esm/drivers/features/implements/SortFeature.d.ts +0 -13
- package/esm/drivers/index.d.ts +0 -7
- package/esm/drivers/providers/IProvider.d.ts +0 -43
- package/esm/drivers/providers/ProviderFactory.d.ts +0 -11
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +0 -55
- package/esm/drivers/requesters/IRequester.d.ts +0 -17
- package/esm/drivers/requesters/Requester.d.ts +0 -8
- package/esm/drivers/requesters/RequesterFactory.d.ts +0 -11
- package/esm/drivers/requesters/entities/HttpRequest.d.ts +0 -22
- package/esm/drivers/requesters/entities/HttpResponse.d.ts +0 -19
- package/esm/drivers/requesters/implements/DefaultRequester.d.ts +0 -7
- package/esm/drivers/signers/ISigner.d.ts +0 -33
- package/esm/drivers/signers/SignerFactory.d.ts +0 -11
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +0 -16
- package/esm/drivers/ssos/ISso.d.ts +0 -41
- package/esm/drivers/ssos/SsoFactory.d.ts +0 -11
- package/esm/drivers/ssos/implements/AnonymousSso.d.ts +0 -18
- package/esm/drivers/ssos/implements/BearerSso.d.ts +0 -22
- package/esm/drivers/ssos/implements/NioSso.d.ts +0 -23
- package/esm/drivers/ssos/implements/SecretSso.d.ts +0 -18
- package/esm/drivers/ssos/implements/WeiXinSso.d.ts +0 -20
- package/esm/sdks/commons/HaCode.vue.d.ts +0 -39
- package/esm/sdks/commons/HaCol.vue.d.ts +0 -9
- package/esm/sdks/commons/HaCompare.vue.d.ts +0 -40
- package/esm/sdks/commons/HaContainer.vue.d.ts +0 -21
- package/esm/sdks/commons/HaEmpty.vue.d.ts +0 -24
- package/esm/sdks/commons/HaProgress.vue.d.ts +0 -8
- package/esm/sdks/commons/HaRow.vue.d.ts +0 -19
- package/esm/sdks/commons/HoCaptcha.vue.d.ts +0 -14
- package/esm/sdks/commons/HoCode.vue.d.ts +0 -39
- package/esm/sdks/commons/HoCol.vue.d.ts +0 -9
- package/esm/sdks/commons/HoCompare.vue.d.ts +0 -40
- package/esm/sdks/commons/HoContainer.vue.d.ts +0 -21
- package/esm/sdks/commons/HoDebug.vue.d.ts +0 -9
- package/esm/sdks/commons/HoEditable.vue.d.ts +0 -13
- package/esm/sdks/commons/HoEmpty.vue.d.ts +0 -24
- package/esm/sdks/commons/HoLoading.vue.d.ts +0 -33
- package/esm/sdks/commons/HoMouseContext.vue.d.ts +0 -2
- package/esm/sdks/commons/HoParticles.vue.d.ts +0 -2
- package/esm/sdks/commons/HoProgress.vue.d.ts +0 -8
- package/esm/sdks/commons/HoResizer.vue.d.ts +0 -26
- package/esm/sdks/commons/HoRow.vue.d.ts +0 -19
- package/esm/sdks/commons/HoSpinner.vue.d.ts +0 -20
- package/esm/sdks/commons/HoTable.vue.d.ts +0 -34
- package/esm/sdks/commons/HoTableColumn.vue.d.ts +0 -31
- package/esm/sdks/globals/HoHeaderTab.vue.d.ts +0 -19
- package/esm/sdks/globals/HoHeaderTabs.vue.d.ts +0 -17
- package/esm/sdks/globals/HoMenu.vue.d.ts +0 -77
- package/esm/sdks/globals/HoMenuItem.vue.d.ts +0 -76
- package/esm/sdks/globals/HoMissComponent.vue.d.ts +0 -9
- package/esm/sdks/globals/HoSideTab.vue.d.ts +0 -21
- package/esm/sdks/globals/HoSideTabs.vue.d.ts +0 -17
- package/esm/sdks/globals/HoWindow.vue.d.ts +0 -66
- package/esm/sdks/helpers/array-helper.d.ts +0 -97
- package/esm/sdks/helpers/component-helper.d.ts +0 -10
- package/esm/sdks/helpers/cookie-helper.d.ts +0 -6
- package/esm/sdks/helpers/dom-helper.d.ts +0 -74
- package/esm/sdks/helpers/encrypt-helper.d.ts +0 -18
- package/esm/sdks/helpers/event-helper.d.ts +0 -30
- package/esm/sdks/helpers/file-helper.d.ts +0 -22
- package/esm/sdks/helpers/html-helper.d.ts +0 -10
- package/esm/sdks/helpers/i18n-helper.d.ts +0 -14
- package/esm/sdks/helpers/image-helper.d.ts +0 -10
- package/esm/sdks/helpers/index.d.ts +0 -25
- package/esm/sdks/helpers/json-helper.d.ts +0 -27
- package/esm/sdks/helpers/math-helper.d.ts +0 -42
- package/esm/sdks/helpers/micro-helper.d.ts +0 -10
- package/esm/sdks/helpers/mount-helper.d.ts +0 -14
- package/esm/sdks/helpers/object-helper.d.ts +0 -34
- package/esm/sdks/helpers/script-helper.d.ts +0 -31
- package/esm/sdks/helpers/scroll-helper.d.ts +0 -14
- package/esm/sdks/helpers/storage-helper.d.ts +0 -34
- package/esm/sdks/helpers/string-helper.d.ts +0 -94
- package/esm/sdks/helpers/task-helper.d.ts +0 -26
- package/esm/sdks/helpers/time-helper.d.ts +0 -62
- package/esm/sdks/helpers/tree-helper.d.ts +0 -54
- package/esm/sdks/helpers/type-helper.d.ts +0 -26
- package/esm/sdks/helpers/url-helper.d.ts +0 -92
- package/esm/sdks/panels/HoGroup.vue.d.ts +0 -9
- package/esm/sdks/panels/HoHeader.vue.d.ts +0 -16
- package/esm/sdks/panels/HoOperation.vue.d.ts +0 -22
- package/esm/sdks/panels/HoPanel.vue.d.ts +0 -30
- package/esm/sdks/panels/HoShrink.vue.d.ts +0 -48
- package/esm/sdks/stores/window.d.ts +0 -25
- package/esm/sdks/thirds/index.d.ts +0 -8
- package/esm/sdks/utilities/AffixUtility.d.ts +0 -9
- package/esm/sdks/utilities/EventUtility.d.ts +0 -30
- package/esm/sdks/utilities/KeyboardUtility.d.ts +0 -73
- package/esm/sdks/utilities/MouseUtility.d.ts +0 -24
- package/esm/sdks/utilities/index.d.ts +0 -4
- package/esm/services/HttpService.d.ts +0 -22
- package/esm/services/SettingService.d.ts +0 -5
- package/esm/stores/app.d.ts +0 -44
- package/esm/stores/component.d.ts +0 -30
- package/esm/stores/config.d.ts +0 -55
- package/esm/stores/driver.d.ts +0 -37
- package/esm/stores/i18n.d.ts +0 -67
- package/esm/stores/layout.d.ts +0 -13
- package/esm/stores/log.d.ts +0 -20
- package/esm/stores/router.d.ts +0 -20
- package/esm/stores/setting.d.ts +0 -43
- package/esm/stores/socket.d.ts +0 -27
- package/esm/stores/user.d.ts +0 -40
@@ -1,148 +0,0 @@
|
|
1
|
-
var y = {}, x;
|
2
|
-
function S() {
|
3
|
-
return x || (x = 1, function(k) {
|
4
|
-
(function() {
|
5
|
-
var i = {
|
6
|
-
not_string: /[^s]/,
|
7
|
-
not_bool: /[^t]/,
|
8
|
-
not_type: /[^T]/,
|
9
|
-
not_primitive: /[^v]/,
|
10
|
-
number: /[diefg]/,
|
11
|
-
numeric_arg: /[bcdiefguxX]/,
|
12
|
-
json: /[j]/,
|
13
|
-
not_json: /[^j]/,
|
14
|
-
text: /^[^\x25]+/,
|
15
|
-
modulo: /^\x25{2}/,
|
16
|
-
placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,
|
17
|
-
key: /^([a-z_][a-z_\d]*)/i,
|
18
|
-
key_access: /^\.([a-z_][a-z_\d]*)/i,
|
19
|
-
index_access: /^\[(\d+)\]/,
|
20
|
-
sign: /^[+-]/
|
21
|
-
};
|
22
|
-
function f(t) {
|
23
|
-
return _(v(t), arguments);
|
24
|
-
}
|
25
|
-
function w(t, o) {
|
26
|
-
return f.apply(null, [t].concat(o || []));
|
27
|
-
}
|
28
|
-
function _(t, o) {
|
29
|
-
var n = 1, c = t.length, e, p = "", a, s, r, l, d, h, b, u;
|
30
|
-
for (a = 0; a < c; a++)
|
31
|
-
if (typeof t[a] == "string")
|
32
|
-
p += t[a];
|
33
|
-
else if (typeof t[a] == "object") {
|
34
|
-
if (r = t[a], r.keys)
|
35
|
-
for (e = o[n], s = 0; s < r.keys.length; s++) {
|
36
|
-
if (e == null)
|
37
|
-
throw new Error(f('[sprintf] Cannot access property "%s" of undefined value "%s"', r.keys[s], r.keys[s - 1]));
|
38
|
-
e = e[r.keys[s]];
|
39
|
-
}
|
40
|
-
else r.param_no ? e = o[r.param_no] : e = o[n++];
|
41
|
-
if (i.not_type.test(r.type) && i.not_primitive.test(r.type) && e instanceof Function && (e = e()), i.numeric_arg.test(r.type) && typeof e != "number" && isNaN(e))
|
42
|
-
throw new TypeError(f("[sprintf] expecting number but found %T", e));
|
43
|
-
switch (i.number.test(r.type) && (b = e >= 0), r.type) {
|
44
|
-
case "b":
|
45
|
-
e = parseInt(e, 10).toString(2);
|
46
|
-
break;
|
47
|
-
case "c":
|
48
|
-
e = String.fromCharCode(parseInt(e, 10));
|
49
|
-
break;
|
50
|
-
case "d":
|
51
|
-
case "i":
|
52
|
-
e = parseInt(e, 10);
|
53
|
-
break;
|
54
|
-
case "j":
|
55
|
-
e = JSON.stringify(e, null, r.width ? parseInt(r.width) : 0);
|
56
|
-
break;
|
57
|
-
case "e":
|
58
|
-
e = r.precision ? parseFloat(e).toExponential(r.precision) : parseFloat(e).toExponential();
|
59
|
-
break;
|
60
|
-
case "f":
|
61
|
-
e = r.precision ? parseFloat(e).toFixed(r.precision) : parseFloat(e);
|
62
|
-
break;
|
63
|
-
case "g":
|
64
|
-
e = r.precision ? String(Number(e.toPrecision(r.precision))) : parseFloat(e);
|
65
|
-
break;
|
66
|
-
case "o":
|
67
|
-
e = (parseInt(e, 10) >>> 0).toString(8);
|
68
|
-
break;
|
69
|
-
case "s":
|
70
|
-
e = String(e), e = r.precision ? e.substring(0, r.precision) : e;
|
71
|
-
break;
|
72
|
-
case "t":
|
73
|
-
e = String(!!e), e = r.precision ? e.substring(0, r.precision) : e;
|
74
|
-
break;
|
75
|
-
case "T":
|
76
|
-
e = Object.prototype.toString.call(e).slice(8, -1).toLowerCase(), e = r.precision ? e.substring(0, r.precision) : e;
|
77
|
-
break;
|
78
|
-
case "u":
|
79
|
-
e = parseInt(e, 10) >>> 0;
|
80
|
-
break;
|
81
|
-
case "v":
|
82
|
-
e = e.valueOf(), e = r.precision ? e.substring(0, r.precision) : e;
|
83
|
-
break;
|
84
|
-
case "x":
|
85
|
-
e = (parseInt(e, 10) >>> 0).toString(16);
|
86
|
-
break;
|
87
|
-
case "X":
|
88
|
-
e = (parseInt(e, 10) >>> 0).toString(16).toUpperCase();
|
89
|
-
break;
|
90
|
-
}
|
91
|
-
i.json.test(r.type) ? p += e : (i.number.test(r.type) && (!b || r.sign) ? (u = b ? "+" : "-", e = e.toString().replace(i.sign, "")) : u = "", d = r.pad_char ? r.pad_char === "0" ? "0" : r.pad_char.charAt(1) : " ", h = r.width - (u + e).length, l = r.width && h > 0 ? d.repeat(h) : "", p += r.align ? u + e + l : d === "0" ? u + l + e : l + u + e);
|
92
|
-
}
|
93
|
-
return p;
|
94
|
-
}
|
95
|
-
var g = /* @__PURE__ */ Object.create(null);
|
96
|
-
function v(t) {
|
97
|
-
if (g[t])
|
98
|
-
return g[t];
|
99
|
-
for (var o = t, n, c = [], e = 0; o; ) {
|
100
|
-
if ((n = i.text.exec(o)) !== null)
|
101
|
-
c.push(n[0]);
|
102
|
-
else if ((n = i.modulo.exec(o)) !== null)
|
103
|
-
c.push("%");
|
104
|
-
else if ((n = i.placeholder.exec(o)) !== null) {
|
105
|
-
if (n[2]) {
|
106
|
-
e |= 1;
|
107
|
-
var p = [], a = n[2], s = [];
|
108
|
-
if ((s = i.key.exec(a)) !== null)
|
109
|
-
for (p.push(s[1]); (a = a.substring(s[0].length)) !== ""; )
|
110
|
-
if ((s = i.key_access.exec(a)) !== null)
|
111
|
-
p.push(s[1]);
|
112
|
-
else if ((s = i.index_access.exec(a)) !== null)
|
113
|
-
p.push(s[1]);
|
114
|
-
else
|
115
|
-
throw new SyntaxError("[sprintf] failed to parse named argument key");
|
116
|
-
else
|
117
|
-
throw new SyntaxError("[sprintf] failed to parse named argument key");
|
118
|
-
n[2] = p;
|
119
|
-
} else
|
120
|
-
e |= 2;
|
121
|
-
if (e === 3)
|
122
|
-
throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");
|
123
|
-
c.push(
|
124
|
-
{
|
125
|
-
placeholder: n[0],
|
126
|
-
param_no: n[1],
|
127
|
-
keys: n[2],
|
128
|
-
sign: n[3],
|
129
|
-
pad_char: n[4],
|
130
|
-
align: n[5],
|
131
|
-
width: n[6],
|
132
|
-
precision: n[7],
|
133
|
-
type: n[8]
|
134
|
-
}
|
135
|
-
);
|
136
|
-
} else
|
137
|
-
throw new SyntaxError("[sprintf] unexpected placeholder");
|
138
|
-
o = o.substring(n[0].length);
|
139
|
-
}
|
140
|
-
return g[t] = c;
|
141
|
-
}
|
142
|
-
k.sprintf = f, k.vsprintf = w, typeof window < "u" && (window.sprintf = f, window.vsprintf = w);
|
143
|
-
})();
|
144
|
-
}(y)), y;
|
145
|
-
}
|
146
|
-
export {
|
147
|
-
S as r
|
148
|
-
};
|
@@ -1,131 +0,0 @@
|
|
1
|
-
function O(e, t, n) {
|
2
|
-
return t in e ? Object.defineProperty(e, t, {
|
3
|
-
value: n,
|
4
|
-
enumerable: !0,
|
5
|
-
configurable: !0,
|
6
|
-
writable: !0
|
7
|
-
}) : e[t] = n, e;
|
8
|
-
}
|
9
|
-
function g(e, t) {
|
10
|
-
var n = Object.keys(e);
|
11
|
-
if (Object.getOwnPropertySymbols) {
|
12
|
-
var r = Object.getOwnPropertySymbols(e);
|
13
|
-
t && (r = r.filter(function(i) {
|
14
|
-
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
15
|
-
})), n.push.apply(n, r);
|
16
|
-
}
|
17
|
-
return n;
|
18
|
-
}
|
19
|
-
function v(e) {
|
20
|
-
for (var t = 1; t < arguments.length; t++) {
|
21
|
-
var n = arguments[t] != null ? arguments[t] : {};
|
22
|
-
t % 2 ? g(Object(n), !0).forEach(function(r) {
|
23
|
-
O(e, r, n[r]);
|
24
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g(Object(n)).forEach(function(r) {
|
25
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
26
|
-
});
|
27
|
-
}
|
28
|
-
return e;
|
29
|
-
}
|
30
|
-
function y() {
|
31
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
32
|
-
t[n] = arguments[n];
|
33
|
-
return function(r) {
|
34
|
-
return t.reduceRight(function(i, a) {
|
35
|
-
return a(i);
|
36
|
-
}, r);
|
37
|
-
};
|
38
|
-
}
|
39
|
-
function c(e) {
|
40
|
-
return function t() {
|
41
|
-
for (var n = this, r = arguments.length, i = new Array(r), a = 0; a < r; a++)
|
42
|
-
i[a] = arguments[a];
|
43
|
-
return i.length >= e.length ? e.apply(this, i) : function() {
|
44
|
-
for (var f = arguments.length, s = new Array(f), o = 0; o < f; o++)
|
45
|
-
s[o] = arguments[o];
|
46
|
-
return t.apply(n, [].concat(i, s));
|
47
|
-
};
|
48
|
-
};
|
49
|
-
}
|
50
|
-
function h(e) {
|
51
|
-
return {}.toString.call(e).includes("Object");
|
52
|
-
}
|
53
|
-
function m(e) {
|
54
|
-
return !Object.keys(e).length;
|
55
|
-
}
|
56
|
-
function l(e) {
|
57
|
-
return typeof e == "function";
|
58
|
-
}
|
59
|
-
function j(e, t) {
|
60
|
-
return Object.prototype.hasOwnProperty.call(e, t);
|
61
|
-
}
|
62
|
-
function w(e, t) {
|
63
|
-
return h(t) || u("changeType"), Object.keys(t).some(function(n) {
|
64
|
-
return !j(e, n);
|
65
|
-
}) && u("changeField"), t;
|
66
|
-
}
|
67
|
-
function P(e) {
|
68
|
-
l(e) || u("selectorType");
|
69
|
-
}
|
70
|
-
function T(e) {
|
71
|
-
l(e) || h(e) || u("handlerType"), h(e) && Object.values(e).some(function(t) {
|
72
|
-
return !l(t);
|
73
|
-
}) && u("handlersType");
|
74
|
-
}
|
75
|
-
function S(e) {
|
76
|
-
e || u("initialIsRequired"), h(e) || u("initialType"), m(e) && u("initialContent");
|
77
|
-
}
|
78
|
-
function E(e, t) {
|
79
|
-
throw new Error(e[t] || e.default);
|
80
|
-
}
|
81
|
-
var D = {
|
82
|
-
initialIsRequired: "initial state is required",
|
83
|
-
initialType: "initial state should be an object",
|
84
|
-
initialContent: "initial state shouldn't be an empty object",
|
85
|
-
handlerType: "handler should be an object or a function",
|
86
|
-
handlersType: "all handlers should be a functions",
|
87
|
-
selectorType: "selector should be a function",
|
88
|
-
changeType: "provided value of changes should be an object",
|
89
|
-
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
90
|
-
default: "an unknown error accured in `state-local` package"
|
91
|
-
}, u = c(E)(D), p = {
|
92
|
-
changes: w,
|
93
|
-
selector: P,
|
94
|
-
handler: T,
|
95
|
-
initial: S
|
96
|
-
};
|
97
|
-
function q(e) {
|
98
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
99
|
-
p.initial(e), p.handler(t);
|
100
|
-
var n = {
|
101
|
-
current: e
|
102
|
-
}, r = c(I)(n, t), i = c(F)(n), a = c(p.changes)(e), f = c(C)(n);
|
103
|
-
function s() {
|
104
|
-
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(b) {
|
105
|
-
return b;
|
106
|
-
};
|
107
|
-
return p.selector(d), d(n.current);
|
108
|
-
}
|
109
|
-
function o(d) {
|
110
|
-
y(r, i, a, f)(d);
|
111
|
-
}
|
112
|
-
return [s, o];
|
113
|
-
}
|
114
|
-
function C(e, t) {
|
115
|
-
return l(t) ? t(e.current) : t;
|
116
|
-
}
|
117
|
-
function F(e, t) {
|
118
|
-
return e.current = v(v({}, e.current), t), t;
|
119
|
-
}
|
120
|
-
function I(e, t, n) {
|
121
|
-
return l(t) ? t(e.current) : Object.keys(n).forEach(function(r) {
|
122
|
-
var i;
|
123
|
-
return (i = t[r]) === null || i === void 0 ? void 0 : i.call(t, e.current[r]);
|
124
|
-
}), n;
|
125
|
-
}
|
126
|
-
var R = {
|
127
|
-
create: q
|
128
|
-
};
|
129
|
-
export {
|
130
|
-
R as i
|
131
|
-
};
|