@sellgar/kit 0.0.116 → 0.0.118

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.
package/dist/index.cjs DELETED
@@ -1,46 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const o=require("react"),se=require("classnames"),Be=require("react/jsx-runtime");function Nm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const x=Nm(o),Cm="_wrapper_y5p8d_1",dt={wrapper:Cm,"size--2xl":"_size--2xl_y5p8d_11","size--xl":"_size--xl_y5p8d_15","size--lg":"_size--lg_y5p8d_19","size--md":"_size--md_y5p8d_23","size--sm":"_size--sm_y5p8d_27","size--xs":"_size--xs_y5p8d_31","color--gray":"_color--gray_y5p8d_37","color--green":"_color--green_y5p8d_40","color--blue":"_color--blue_y5p8d_43","color--orange":"_color--orange_y5p8d_46","color--red":"_color--red_y5p8d_49","color--purple":"_color--purple_y5p8d_52"},ao=({size:e="2xl",color:t="gray"})=>{const n=o.useMemo(()=>se(dt.wrapper,{[dt["size--2xl"]]:e==="2xl",[dt["size--xl"]]:e==="xl",[dt["size--lg"]]:e==="lg",[dt["size--md"]]:e==="md",[dt["size--sm"]]:e==="sm",[dt["size--xs"]]:e==="xs"},{[dt["color--gray"]]:t==="gray",[dt["color--green"]]:t==="green",[dt["color--blue"]]:t==="blue",[dt["color--orange"]]:t==="orange",[dt["color--red"]]:t==="red",[dt["color--purple"]]:t==="purple"}),[e,t]);return o.createElement("div",{className:n})},xe=e=>o.createElement("span",{className:"icon-"+e.icon}),$m=["ancient-gate-fill","ancient-gate-line","ancient-pavilion-fill","ancient-pavilion-line","bank-fill","bank-line","building-2-fill","building-2-line","building-3-fill","building-3-line","building-4-fill","building-4-line","building-fill","building-line","community-fill","community-line","government-fill","government-line","home-2-fill","home-2-line","home-3-fill","home-3-line","home-4-fill","home-4-line","home-5-fill","home-5-line","home-6-fill","home-6-line","home-7-fill","home-7-line","home-8-fill","home-8-line","home-fill","home-gear-fill","home-gear-line","home-heart-fill","home-heart-line","home-line","home-smile-2-fill","home-smile-2-line","home-smile-fill","home-smile-line","home-wifi-fill","home-wifi-line","hospital-fill","hospital-line","hotel-fill","hotel-line","store-2-fill","store-2-line","store-3-fill","store-3-line","store-fill","store-line","advertisement-fill","advertisement-line","archive-drawer-fill","archive-drawer-line","archive-fill","archive-line","at-fill","at-line","attachment-fill","attachment-line","award-fill","award-line","bar-chart-2-fill","bar-chart-2-line","bar-chart-box-fill","bar-chart-box-line","bar-chart-fill","bar-chart-grouped-fill","bar-chart-grouped-line","bar-chart-horizontal-fill","bar-chart-horizontal-line","bar-chart-line","bookmark-2-fill","bookmark-2-line","bookmark-3-fill","bookmark-3-line","bookmark-fill","bookmark-line","briefcase-2-fill","briefcase-2-line","briefcase-3-fill","briefcase-3-line","briefcase-4-fill","briefcase-4-line","briefcase-5-fill","briefcase-5-line","briefcase-fill","briefcase-line","bubble-chart-fill","bubble-chart-line","calculator-fill","calculator-line","calendar-2-fill","calendar-2-line","calendar-check-fill","calendar-check-line","calendar-event-fill","calendar-event-line","calendar-fill","calendar-line","calendar-todo-fill","calendar-todo-line","cloud-fill","cloud-line","cloud-off-fill","cloud-off-line","copyleft-fill","copyleft-line","copyright-fill","copyright-line","creative-commons-by-fill","creative-commons-by-line","creative-commons-fill","creative-commons-line","creative-commons-nc-fill","creative-commons-nc-line","creative-commons-nd-fill","creative-commons-nd-line","creative-commons-sa-fill","creative-commons-sa-line","creative-commons-zero-fill","creative-commons-zero-line","customer-service-2-fill","customer-service-2-line","customer-service-fill","customer-service-line","donut-chart-fill","donut-chart-line","flag-2-fill","flag-2-line","flag-fill","flag-line","global-fill","global-line","honour-fill","honour-line","inbox-archive-fill","inbox-archive-line","inbox-fill","inbox-line","inbox-unarchive-fill","inbox-unarchive-line","line-chart-fill","line-chart-line","links-fill","links-line","mail-add-fill","mail-add-line","mail-check-fill","mail-check-line","mail-close-fill","mail-close-line","mail-download-fill","mail-download-line","mail-fill","mail-forbid-fill","mail-forbid-line","mail-line","mail-lock-fill","mail-lock-line","mail-open-fill","mail-open-line","mail-send-fill","mail-send-line","mail-settings-fill","mail-settings-line","mail-star-fill","mail-star-line","mail-unread-fill","mail-unread-line","mail-volume-fill","mail-volume-line","medal-2-fill","medal-2-line","medal-fill","medal-line","pie-chart-2-fill","pie-chart-2-line","pie-chart-box-fill","pie-chart-box-line","pie-chart-fill","pie-chart-line","printer-cloud-fill","printer-cloud-line","printer-fill","printer-line","profile-fill","profile-line","projector-2-fill","projector-2-line","projector-fill","projector-line","record-mail-fill","record-mail-line","registered-fill","registered-line","reply-all-fill","reply-all-line","reply-fill","reply-line","send-plane-2-fill","send-plane-2-line","send-plane-fill","send-plane-line","service-fill","service-line","slideshow-2-fill","slideshow-2-line","slideshow-3-fill","slideshow-3-line","slideshow-4-fill","slideshow-4-line","slideshow-fill","slideshow-line","stack-fill","stack-line","trademark-fill","trademark-line","window-2-fill","window-2-line","window-fill","window-line","chat-1-fill","chat-1-line","chat-2-fill","chat-2-line","chat-3-fill","chat-3-line","chat-4-fill","chat-4-line","chat-check-fill","chat-check-line","chat-delete-fill","chat-delete-line","chat-download-fill","chat-download-line","chat-follow-up-fill","chat-follow-up-line","chat-forward-fill","chat-forward-line","chat-heart-fill","chat-heart-line","chat-history-fill","chat-history-line","chat-new-fill","chat-new-line","chat-off-fill","chat-off-line","chat-poll-fill","chat-poll-line","chat-private-fill","chat-private-line","chat-quote-fill","chat-quote-line","chat-settings-fill","chat-settings-line","chat-smile-2-fill","chat-smile-2-line","chat-smile-3-fill","chat-smile-3-line","chat-smile-fill","chat-smile-line","chat-upload-fill","chat-upload-line","chat-voice-fill","chat-voice-line","discuss-fill","discuss-line","feedback-fill","feedback-line","message-2-fill","message-2-line","message-3-fill","message-3-line","message-fill","message-line","question-answer-fill","question-answer-line","questionnaire-fill","questionnaire-line","video-chat-fill","video-chat-line","anticlockwise-2-fill","anticlockwise-2-line","anticlockwise-fill","anticlockwise-line","artboard-2-fill","artboard-2-line","artboard-fill","artboard-line","ball-pen-fill","ball-pen-line","blur-off-fill","blur-off-line","brush-2-fill","brush-2-line","brush-3-fill","brush-3-line","brush-4-fill","brush-4-line","brush-fill","brush-line","clockwise-2-fill","clockwise-2-line","clockwise-fill","clockwise-line","collage-fill","collage-line","compasses-2-fill","compasses-2-line","compasses-fill","compasses-line","contrast-2-fill","contrast-2-line","contrast-drop-2-fill","contrast-drop-2-line","contrast-drop-fill","contrast-drop-line","contrast-fill","contrast-line","crop-2-fill","crop-2-line","crop-fill","crop-line","drag-drop-fill","drag-drop-line","drag-move-2-fill","drag-move-2-line","drag-move-fill","drag-move-line","drop-fill","drop-line","edit-2-fill","edit-2-line","edit-box-fill","edit-box-line","edit-circle-fill","edit-circle-line","edit-fill","edit-line","eraser-fill","eraser-line","focus-2-fill","focus-2-line","focus-3-fill","focus-3-line","focus-fill","focus-line","grid-fill","grid-line","hammer-fill","hammer-line","ink-bottle-fill","braces-fill","braces-line","brackets-fill","brackets-line","bug-2-fill","bug-2-line","bug-fill","bug-line","code-box-fill","code-box-line","code-fill","code-line","code-s-fill","code-s-line","code-s-slash-fill","code-s-slash-line","command-fill","command-line","css3-fill","css3-line","cursor-fill","cursor-line","git-branch-fill","git-branch-line","git-commit-fill","git-commit-line","git-merge-fill","git-merge-line","git-pull-request-fill","git-pull-request-line","git-repository-commits-fill","git-repository-commits-line","git-repository-fill","git-repository-line","git-repository-private-fill","git-repository-private-line","html5-fill","html5-line","parentheses-fill","parentheses-line","terminal-box-fill","terminal-box-line","terminal-fill","terminal-line","terminal-window-fill","terminal-window-line","airplay-fill","airplay-line","barcode-box-fill","barcode-box-line","barcode-fill","barcode-line","base-station-fill","base-station-line","battery-2-charge-fill","battery-2-charge-line","battery-2-fill","battery-2-line","battery-charge-fill","battery-charge-line","battery-fill","battery-line","battery-low-fill","battery-low-line","battery-saver-fill","battery-saver-line","battery-share-fill","battery-share-line","bluetooth-connect-fill","bluetooth-connect-line","bluetooth-fill","bluetooth-line","cast-fill","cast-line","cellphone-fill","cellphone-line","computer-fill","computer-line","cpu-fill","cpu-line","dashboard-2-fill","dashboard-2-line","dashboard-3-fill","dashboard-3-line","database-2-fill","database-2-line","database-fill","database-line","device-fill","device-line","device-recover-fill","device-recover-line","device-recover-line-1","dual-sim-1-fill","dual-sim-1-line","dual-sim-2-fill","dual-sim-2-line","fingerprint-2-fill","fingerprint-2-line","fingerprint-fill","fingerprint-line","gamepad-fill","gamepad-line","gps-fill","gps-line","gradienter-fill","gradienter-line","hard-drive-2-fill","hard-drive-2-line","hard-drive-fill","hard-drive-line","hotspot-fill","hotspot-line","install-fill","install-line","keyboard-box-fill","keyboard-box-line","keyboard-fill","keyboard-line","macbook-fill","macbook-line","mac-fill","mac-line","mouse-fill","mouse-line","phone-fill","phone-find-fill","phone-find-line","phone-line","phone-lock-fill","phone-lock-line","qr-code-fill","qr-code-line","qr-scan-2-fill","qr-scan-2-line","qr-scan-fill","qr-scan-line","radar-fill","radar-line","remote-control-2-fill","remote-control-2-line","remote-control-fill","remote-control-line","restart-fill","restart-line","rotate-lock-fill","rotate-lock-line","router-fill","router-line","rss-fill","rss-line","save-2-fill","save-2-line","save-3-fill","save-3-line","save-fill","save-line","scan-2-fill","scan-2-line","scan-fill","scan-line","sd-card-fill","sd-card-line","sd-card-mini-fill","sd-card-mini-line","sensor-fill","sensor-line","server-fill","server-line","shut-down-fill","shut-down-line","signal-wifi-1-fill","signal-wifi-1-line","signal-wifi-2-fill","signal-wifi-2-line","signal-wifi-3-fill","signal-wifi-3-line","signal-wifi-error-fill","signal-wifi-error-line","signal-wifi-fill","signal-wifi-line","signal-wifi-off-fill","signal-wifi-off-line","sim-card-2-fill","sim-card-2-line","sim-card-fill","sim-card-line","smartphone-fill","smartphone-line","tablet-fill","tablet-line","tv-2-fill","tv-2-line","tv-fill","tv-line","u-disk-fill","u-disk-line","uninstall-fill","uninstall-line","usb-fill","usb-line","wifi-fill","wifi-line","wifi-off-fill","wifi-off-line","wireless-charging-fill","wireless-charging-line","article-fill","article-line","bill-fill","bill-line","book-2-fill","book-2-line","book-3-fill","book-3-line","book-fill","booklet-fill","booklet-line","book-line","book-mark-fill","book-mark-line","book-open-fill","book-open-line","book-read-fill","book-read-line","clipboard-fill","clipboard-line","contacts-book-2-fill","contacts-book-2-line","contacts-book-fill","contacts-book-line","contacts-book-upload-fill","contacts-book-upload-line","draft-fill","draft-line","file-2-fill","file-2-line","file-3-fill","file-3-line","file-4-fill","file-4-line","file-add-fill","file-add-line","file-chart-2-fill","file-chart-2-line","file-chart-fill","file-chart-line","file-cloud-fill","file-cloud-line","file-code-fill","file-code-line","file-copy-2-fill","file-copy-2-line","file-copy-fill","file-copy-line","file-damage-fill","file-damage-line","file-download-fill","file-download-line","file-edit-fill","file-edit-line","file-excel-2-fill","file-excel-2-line","file-excel-fill","file-excel-line","file-fill","file-forbid-fill","file-forbid-line","file-gif-fill","file-gif-line","file-history-fill","file-history-line","file-hwp-fill","file-hwp-line","file-info-fill","file-info-line","file-line","file-list-2-fill","file-list-2-line","file-list-3-fill","file-list-3-line","file-list-fill","file-list-line","file-lock-fill","file-lock-line","file-mark-fill","file-mark-line","file-music-fill","file-music-line","file-paper-2-fill","file-paper-2-line","file-paper-fill","file-paper-line","file-pdf-fill","file-pdf-line","file-ppt-2-fill","file-ppt-2-line","file-ppt-fill","file-ppt-line","file-reduce-fill","file-reduce-line","file-search-fill","file-search-line","file-settings-fill","file-settings-line","file-shield-2-fill","file-shield-2-line","file-shield-fill","file-shield-line","file-shred-fill","file-shred-line","file-text-fill","file-text-line","file-transfer-fill","file-transfer-line","file-unknow-fill","file-unknow-line","file-upload-fill","file-upload-line","file-user-fill","file-user-line","file-warning-fill","file-warning-line","file-word-2-fill","file-word-2-line","file-word-fill","file-word-line","file-zip-fill","file-zip-line","folder-2-fill","folder-2-line","folder-3-fill","folder-3-line","folder-4-fill","folder-4-line","folder-5-fill","folder-5-line","folder-add-fill","folder-add-line","folder-chart-2-fill","folder-chart-2-line","folder-chart-fill","folder-chart-line","folder-download-fill","folder-download-line","folder-fill","folder-forbid-fill","folder-forbid-line","folder-history-fill","folder-history-line","folder-info-fill","folder-info-line","folder-keyhole-fill","folder-keyhole-line","folder-line","folder-lock-fill","folder-lock-line","folder-music-fill","folder-music-line","folder-open-fill","folder-open-line","folder-received-fill","folder-received-line","folder-reduce-fill","folder-reduce-line","folder-settings-fill","folder-settings-line","folders-fill","folder-shared-fill","folder-shared-line","folder-shield-2-fill","folder-shield-2-line","folder-shield-fill","folder-shield-line","folders-line","folder-transfer-fill","folder-transfer-line","folder-unknow-fill","folder-unknow-line","folder-upload-fill","folder-upload-line","folder-user-fill","folder-user-line","folder-warning-fill","folder-warning-line","folder-zip-fill","folder-zip-line","keynote-fill","keynote-line","markdown-fill","markdown-line","newspaper-fill","newspaper-line","numbers-fill","numbers-line","pages-fill","pages-line","sticky-note-2-fill","sticky-note-2-line","sticky-note-fill","sticky-note-line","survey-fill","survey-line","task-fill","task-line","todo-fill","todo-line","a-b","align-bottom","align-center","align-justify","align-left","align-right","align-top","align-vertically","asterisk","attachment-2","bold","bring-forward","bring-to-front","code-view","delete-column","delete-row","double-quotes-l","double-quotes-r","emphasis","emphasis-cn","english-input","flow-chart","font-color","font-size","font-size-2","format-clear","functions","h-1","h-2","h-3","h-4","h-5","h-6","hashtag","heading","indent-decrease","indent-increase","input-cursor-move","insert-column-left","insert-column-right","insert-row-bottom","insert-row-top","italic","line-height","link","link-m","link-unlink","link-unlink-m","list-check","list-check-2","list-ordered","list-unordered","merge-cells-horizontal","merge-cells-vertical","mind-map","node-tree","number-0","number-1","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","omega","organization-chart","page-separator","paragraph","pinyin-input","question-mark","rounded-corner","send-backward","send-to-back","separator","single-quotes-l","single-quotes-r","sort-asc","sort-desc","space","split-cells-horizontal","split-cells-vertical","strikethrough","strikethrough-2","subscript","subscript-2","superscript","superscript-2","table-2","text","text-direction-l","text-direction-r","text-spacing","text-wrap","translate","translate-2","underline","wubi-input","hours-fill","hours-line","auction-fill","auction-line","bank-card-2-fill","bank-card-2-line","bank-card-fill","bank-card-line","bit-coin-fill","bit-coin-line","coin-fill","coin-line","coins-fill","coins-line","copper-coin-fill","copper-coin-line","copper-diamond-fill","copper-diamond-line","coupon-2-line","coupon-3-fill","coupon-3-line","coupon-4-fill","coupon-4-line","coupon-5-fill","coupon-5-line","coupon-fill","coupon-line","currency-fill","currency-line","exchange-box-fill","exchange-box-line","exchange-cny-fill","exchange-cny-line","exchange-dollar-fill","exchange-dollar-line","exchange-fill","exchange-funds-fill","exchange-funds-line","exchange-line","funds-box-fill","funds-box-line","funds-fill","funds-line","gift-2-fill","gift-2-line","gift-fill","gift-line","hand-coin-fill","hand-coin-line","hand-heart-fill","hand-heart-line","increase-decrease-fill","increase-decrease-line","money-cny-box-fill","money-cny-box-line","money-cny-circle-fill","money-cny-circle-line","money-dollar-box-fill","money-dollar-box-line","money-dollar-circle-fill","money-dollar-circle-line","money-euro-box-fill","money-euro-box-line","money-euro-circle-fill","money-euro-circle-line","money-pound-box-fill","money-pound-box-line","money-pound-circle-fill","money-pound-circle-line","percent-fill","percent-line","price-tag-2-fill","price-tag-2-line","price-tag-3-fill","price-tag-3-line","price-tag-fill","price-tag-line","red-packet-fill","red-packet-line","refund-2-fill","refund-2-line","refund-fill","refund-line","safe-2-fill","safe-2-line","safe-fill","safe-line","secure-payment-fill","secure-payment-line","shopping-bag-2-fill","shopping-bag-2-line","shopping-bag-3-fill","shopping-bag-3-line","shopping-bag-fill","shopping-bag-line","shopping-basket-2-fill","shopping-basket-2-line","shopping-basket-fill","shopping-basket-line","shopping-cart-2-fill","shopping-cart-2-line","shopping-cart-fill","shopping-cart-line","stock-fill","stock-line","swap-box-fill","swap-box-line","swap-fill","swap-line","ticket-2-fill","ticket-2-line","ticket-fill","ticket-line","trophy-fill","trophy-line","vip-crown-2-fill","vip-crown-2-line","vip-crown-fill","vip-crown-line","vip-diamond-fill","vip-diamond-line","vip-fill","vip-line","wallet-2-fill","wallet-2-line","wallet-3-fill","wallet-3-line","wallet-fill","wallet-line","water-flash-fill","water-flash-line","capsule-fill","capsule-line","dislike-fill","dislike-line","dossier-fill","dossier-line","empathize-fill","empathize-line","first-aid-kit-fill","first-aid-kit-line","flask-fill","flask-line","hand-sanitizer-fill","hand-sanitizer-line","health-book-fill","health-book-line","heart-2-fill","heart-2-line","heart-3-fill","heart-3-line","heart-add-fill","heart-add-line","heart-fill","heart-line","heart-pulse-fill","heart-pulse-line","hearts-fill","infrared-thermometer-fill","infrared-thermometer-line","lungs-fill","lungs-line","lungs-line-1","medicine-bottle-fill","medicine-bottle-line","mental-health-fill","mental-health-line","microscope-fill","microscope-line","nurse-fill","nurse-line","psychotherapy-fill","psychotherapy-line","pulse-fill","pulse-line","rest-time-fill","rest-time-line","stethoscope-fill","stethoscope-line","surgical-mask-fill","surgical-mask-line","syringe-fill","syringe-line","test-tube-fill","test-tube-line","thermometer-fill","thermometer-line","virus-fill","virus-line","zzz-fill","zzz-line","alipay-fill","alipay-line","amazon-fill","amazon-line","android-fill","android-line","angularjs-fill","angularjs-line","apple-fill","apple-line","app-store-fill","app-store-line","baidu-fill","baidu-line","behance-fill","behance-line","bilibili-fill","bilibili-line","centos-fill","centos-line","chrome-fill","chrome-line","codepen-fill","codepen-line","coreos-fill","coreos-line","dingding-fill","dingding-line","discord-fill","discord-line","disqus-fill","disqus-line","douban-fill","douban-line","dribbble-fill","dribbble-line","drive-fill","drive-line","dropbox-fill","dropbox-line","edge-fill","edge-line","evernote-fill","evernote-line","facebook-box-fill","facebook-box-line","facebook-circle-fill","facebook-circle-line","facebook-fill","facebook-line","figma-line","finder-fill","finder-line","firefox-fill","firefox-line","flutter-fill","flutter-line","gatsby-fill","gatsby-line","github-fill","github-line","gitlab-fill","gitlab-line","google-fill","google-line","google-play-fill","google-play-line","honor-of-kings-fill","honor-of-kings-line","ie-fill","ie-line","instagram-fill","instagram-line","invision-fill","invision-line","kakao-talk-fill","kakao-talk-line","line-fill","line-line","linkedin-box-fill","linkedin-box-line","linkedin-fill","linkedin-line","mastercard-fill","mastercard-line","mastodon-fill","mastodon-line","medium-fill","medium-line","messenger-fill","messenger-line","microsoft-fill","microsoft-line","mini-program-fill","mini-program-line","netease-cloud-music-fill","netease-cloud-music-line","netflix-fill","netflix-line","npmjs-fill","npmjs-line","open-source-fill","open-source-line","opera-fill","opera-line","patreon-fill","patreon-line","paypal-fill","paypal-line","pinterest-fill","pinterest-line","pixelfed-fill","pixelfed-line","playstation-fill","playstation-line","product-hunt-fill","product-hunt-line","qq-fill","qq-line","reactjs-fill","reactjs-line","reddit-fill","reddit-line","remixicon-fill","remixicon-line","safari-fill","safari-line","skype-fill","skype-line","slack-fill","slack-line","snapchat-fill","snapchat-line","soundcloud-fill","soundcloud-line","spectrum-fill","spectrum-line","spotify-fill","spotify-line","stack-overflow-fill","stack-overflow-line","stackshare-fill","stackshare-line","steam-fill","steam-line","switch-fill","switch-line","taobao-fill","taobao-line","telegram-fill","telegram-line","trello-fill","trello-line","tumblr-fill","tumblr-line","twitch-fill","twitch-line","twitter-fill","twitter-line","ubuntu-fill","ubuntu-line","unsplash-fill","unsplash-line","vimeo-fill","vimeo-line","visa-fill","visa-line","vuejs-fill","vuejs-line","wechat-2-fill","wechat-2-line","wechat-fill","wechat-line","wechat-pay-fill","wechat-pay-line","weibo-fill","weibo-line","whatsapp-fill","whatsapp-line","windows-fill","windows-line","xbox-fill","xbox-line","xing-fill","xing-line","youtube-fill","youtube-line","zcool-fill","zcool-line","zhihu-fill","zhihu-line","anchor-fill","anchor-line","barricade-fill","barricade-line","bike-fill","bike-line","bus-2-fill","bus-2-line","bus-fill","bus-line","bus-wifi-fill","bus-wifi-line","caravan-fill","caravan-line","car-fill","car-line","car-washing-fill","car-washing-line","charging-pile-2-fill","charging-pile-2-line","charging-pile-fill","charging-pile-line","china-railway-fill","china-railway-line","compass-2-fill","compass-2-line","compass-3-fill","compass-3-line","compass-4-fill","compass-4-line","compass-discover-fill","compass-discover-line","compass-fill","compass-line","cup-fill","cup-line","direction-fill","direction-line","earth-fill","earth-line","e-bike-2-fill","e-bike-2-line","e-bike-fill","e-bike-line","flight-land-fill","flight-land-line","flight-takeoff-fill","flight-takeoff-line","footprint-fill","footprint-line","gas-station-fill","gas-station-line","globe-fill","globe-line","goblet-fill","goblet-line","guide-fill","guide-line","hotel-bed-fill","hotel-bed-line","lifebuoy-fill","lifebuoy-line","luggage-cart-fill","luggage-cart-line","luggage-deposit-fill","luggage-deposit-line","map-2-fill","map-2-line","map-fill","map-line","map-pin-2-fill","map-pin-2-line","map-pin-3-fill","map-pin-3-line","map-pin-4-fill","map-pin-4-line","map-pin-5-fill","map-pin-5-line","map-pin-add-fill","map-pin-add-line","map-pin-fill","map-pin-line","map-pin-range-fill","map-pin-range-line","map-pin-time-fill","map-pin-time-line","map-pin-user-fill","map-pin-user-line","motorbike-fill","motorbike-line","navigation-fill","navigation-line","oil-fill","oil-line","parking-box-fill","parking-box-line","parking-fill","parking-line","passport-fill","passport-line","pin-distance-fill","pin-distance-line","plane-fill","plane-line","police-car-fill","police-car-line","pushpin-2-fill","pushpin-2-line","pushpin-fill","pushpin-line","restaurant-2-fill","restaurant-2-line","restaurant-fill","restaurant-line","riding-fill","riding-line","road-map-fill","road-map-line","roadster-fill","roadster-line","rocket-2-fill","rocket-2-line","rocket-fill","rocket-line","route-fill","route-line","run-fill","run-line","sailboat-fill","sailboat-line","ship-2-fill","ship-2-line","ship-fill","ship-line","signal-tower-fill","signal-tower-line","space-ship-fill","space-ship-line","steering-2-fill","steering-2-line","steering-fill","steering-line","subway-fill","subway-line","subway-wifi-fill","subway-wifi-line","suitcase-2-fill","suitcase-2-line","suitcase-3-fill","suitcase-3-line","suitcase-fill","suitcase-line","takeaway-fill","takeaway-line","taxi-fill","taxi-line","taxi-wifi-fill","taxi-wifi-line","traffic-light-fill","traffic-light-line","train-fill","train-line","train-wifi-fill","train-wifi-line","treasure-map-fill","treasure-map-line","truck-fill","truck-line","walk-fill","walk-line","k-fill","k-line","album-fill","album-line","aspect-ratio-fill","aspect-ratio-line","broadcast-fill","broadcast-line","camera-2-fill","camera-2-line","camera-3-fill","camera-3-line","camera-fill","camera-lens-fill","camera-lens-line","camera-line","camera-off-fill","camera-off-line","camera-switch-fill","camera-switch-line","clapperboard-fill","clapperboard-line","closed-captioning-fill","closed-captioning-line","disc-fill","disc-line","dvd-fill","dvd-line","dv-fill","dv-line","eject-fill","eject-line","equalizer-fill","equalizer-line","film-fill","film-line","fullscreen-exit-fill","fullscreen-exit-line","fullscreen-fill","fullscreen-line","gallery-fill","gallery-line","gallery-upload-fill","gallery-upload-line","hd-fill","hd-line","headphone-fill","headphone-line","hq-fill","hq-line","image-2-fill","image-2-line","image-add-fill","image-add-line","image-edit-fill","image-edit-line","image-fill","image-line","landscape-fill","landscape-line","live-fill","live-line","mic-2-fill","mic-2-line","mic-fill","mic-line","mic-off-fill","mic-off-line","movie-2-fill","movie-2-line","movie-fill","movie-line","music-2-fill","music-2-line","music-fill","music-line","mv-fill","mv-line","notification-2-fill","notification-2-line","notification-3-fill","notification-3-line","notification-4-fill","notification-4-line","notification-fill","notification-line","notification-off-fill","notification-off-line","order-play-fill","order-play-line","pause-circle-fill","pause-circle-line","pause-fill","pause-line","pause-mini-fill","pause-mini-line","phone-camera-fill","phone-camera-line","picture-in-picture-2-fill","picture-in-picture-2-line","picture-in-picture-exit-fill","picture-in-picture-exit-line","picture-in-picture-fill","picture-in-picture-line","play-circle-fill","play-circle-line","play-fill","play-line","play-list-2-fill","play-list-2-line","play-list-add-fill","play-list-add-line","play-list-fill","play-list-line","play-mini-fill","play-mini-line","polaroid-2-fill","polaroid-2-line","polaroid-fill","polaroid-line","radio-2-fill","radio-2-line","radio-fill","radio-line","record-circle-fill","record-circle-line","repeat-2-fill","repeat-2-line","repeat-fill","repeat-line","repeat-one-fill","repeat-one-line","rewind-fill","rewind-line","rewind-mini-fill","rewind-mini-line","rhythm-fill","rhythm-line","shuffle-fill","shuffle-line","skip-back-fill","skip-back-line","skip-back-mini-fill","skip-back-mini-line","skip-forward-fill","skip-forward-line","skip-forward-mini-fill","skip-forward-mini-line","sound-module-fill","sound-module-line","speaker-2-fill","speaker-2-line","speaker-3-fill","speaker-3-line","speaker-fill","speaker-line","speed-fill","speed-line","speed-mini-fill","speed-mini-line","stop-circle-fill","stop-circle-line","stop-fill","stop-line","stop-mini-fill","stop-mini-line","surround-sound-fill","surround-sound-line","tape-fill","tape-line","video-add-fill","video-add-line","video-download-fill","video-download-line","video-fill","video-line","video-upload-fill","video-upload-line","vidicon-2-fill","vidicon-2-line","vidicon-fill","vidicon-line","voiceprint-fill","voiceprint-line","volume-down-fill","volume-down-line","volume-mute-fill","volume-mute-line","volume-off-vibrate-fill","volume-off-vibrate-line","volume-up-fill","volume-up-line","volume-vibrate-fill","volume-vibrate-line","webcam-fill","webcam-line","basketball-fill","basketball-line","bell-fill","bell-line","billiards-fill","billiards-line","boxing-fill","boxing-line","cactus-fill","cactus-line","cake-2-fill","cake-2-line","cake-3-fill","cake-3-line","cake-fill","cake-line","character-recognition-fill","character-recognition-line","checkmark-fill","checkmark-line","door-closed-fill","door-closed-line","door-fill","door-line","door-lock-box-fill","door-lock-box-line","door-lock-fill","door-lock-line","door-open-fill","door-open-line","football-fill","football-line","fridge-fill","fridge-line","game-fill","game-line","handbag-fill","handbag-line","key-2-fill","key-2-line","key-fill","key-line","knife-blood-fill","knife-fill","knife-line","leaf-fill","leaf-line","lightbulb-fill","lightbulb-flash-fill","lightbulb-flash-line","lightbulb-line","outlet-2-fill","outlet-2-line","outlet-fill","outlet-line","ping-pong-fill","ping-pong-line","plant-fill","plant-line","plug-2-fill","plug-2-line","plug-fill","plug-line","recycle-fill","recycle-line","reserved-fill","reserved-line","scales-2-fill","scales-2-line","scales-3-fill","scales-3-line","scales-fill","scales-line","seedling-fill","seedling-line","shirt-fill","shirt-line","sword-fill","sword-line","t-shirt-2-fill","t-shirt-2-line","t-shirt-air-fill","t-shirt-air-line","t-shirt-fill","t-shirt-line","umbrella-fill","umbrella-line","voice-recognition-fill","voice-recognition-line","wheelchair-fill","wheelchair-line","add-box-fill","add-box-line","add-circle-fill","add-circle-line","add-fill","add-line","alarm-fill","alarm-line","alarm-warning-fill","alarm-warning-line","alert-fill","alert-line","apps-2-fill","apps-2-line","apps-fill","apps-line","arrow-down-circle-fill","arrow-down-circle-line","arrow-down-fill","arrow-down-line","arrow-down-s-fill","arrow-down-s-line","arrow-drop-down-fill","arrow-drop-down-line","arrow-drop-left-fill","arrow-drop-left-line","arrow-drop-right-fill","arrow-drop-right-line","arrow-drop-up-fill","arrow-drop-up-line","arrow-go-back-fill","arrow-go-back-line","arrow-go-forward-fill","arrow-go-forward-line","arrow-left-circle-fill","arrow-left-circle-line","arrow-left-down-fill","arrow-left-down-line","arrow-left-fill","arrow-left-line","arrow-left-right-fill","arrow-left-right-line","arrow-left-s-fill","arrow-left-s-line","arrow-left-up-fill","arrow-left-up-line","arrow-right-circle-fill","arrow-right-circle-line","arrow-right-down-fill","arrow-right-down-line","arrow-right-fill","arrow-right-line","arrow-right-s-fill","arrow-right-s-line","arrow-right-up-fill","arrow-right-up-line","arrow-up-circle-fill","arrow-up-circle-line","arrow-up-down-fill","arrow-up-down-line","arrow-up-fill","arrow-up-line","arrow-up-s-fill","arrow-up-s-line","checkbox-blank-circle-fill","checkbox-blank-circle-line","checkbox-blank-fill","checkbox-blank-line","checkbox-circle-fill","checkbox-circle-line","checkbox-fill","checkbox-indeterminate-fill","checkbox-indeterminate-line","checkbox-line","checkbox-multiple-blank-fill","checkbox-multiple-blank-line","checkbox-multiple-fill","checkbox-multiple-line","check-double-fill","check-double-line","check-fill","check-line","close-circle-fill","close-circle-line","close-fill","close-line","dashboard-fill","dashboard-line","delete-back-2-fill","delete-back-2-line","delete-back-fill","delete-back-line","delete-bin-2-fill","delete-bin-2-line","delete-bin-3-fill","delete-bin-3-line","delete-bin-4-fill","delete-bin-4-line","delete-bin-5-fill","delete-bin-5-line","delete-bin-6-fill","delete-bin-6-line","delete-bin-7-fill","delete-bin-7-line","delete-bin-fill","delete-bin-line","divide-fill","divide-line","dots-out-line","download-2-fill","download-2-line","download-cloud-2-fill","download-cloud-2-line","download-cloud-fill","download-cloud-line","download-fill","download-line","error-warning-fill","error-warning-line","expand-left-right","expand-up-down","external-link-fill","external-link-line","eye-2-fill","eye-2-line","eye-close-fill","eye-close-line","eye-fill","eye-line","eye-off-fill","eye-off-line","filter-2-fill","filter-2-line","filter-3-fill","filter-3-line","filter-fill","filter-line","filter-off-fill","filter-off-line","find-replace-fill","find-replace-line","forbid-2-fill","forbid-2-line","forbid-fill","forbid-line","function-fill","function-line","history-fill","history-line","indeterminate-circle-fill","indeterminate-circle-line","information-fill","information-line","list-settings-fill","list-settings-line","loader-2-fill","loader-2-line","loader-3-fill","loader-3-line","loader-4-fill","loader-4-line","loader-5-fill","loader-5-line","loader-fill","loader-line","lock-2-fill","lock-2-line","lock-fill","lock-line","lock-password-fill","lock-password-line","lock-unlock-fill","lock-unlock-line","login-box-fill","login-box-line","login-circle-fill","login-circle-line","logout-box-fill","logout-box-line","logout-box-r-fill","logout-box-r-line","logout-circle-fill","logout-circle-line","logout-circle-r-fill","logout-circle-r-line","menu-2-fill","menu-2-line","menu-3-fill","menu-3-line","menu-4-fill","menu-4-line","menu-5-fill","menu-5-line","menu-add-fill","menu-add-line","menu-fill","menu-fold-fill","menu-fold-line","menu-line","menu-unfold-fill","menu-unfold-line","more-2-fill","more-2-line","more-fill","more-line","notification-badge-fill","notification-badge-line","question-fill","question-line","radio-button-fill","radio-button-line","refresh-fill","refresh-line","search-2-fill","search-2-line","search-eye-fill","search-eye-line","search-fill","search-line","settings-2-fill","settings-2-line","settings-3-fill","settings-3-line","settings-4-fill","settings-4-line","settings-5-fill","settings-5-line","settings-6-fill","settings-6-line","settings-fill","settings-line","share-box-fill","share-box-line","share-circle-fill","share-circle-line","share-fill","share-forward-2-fill","share-forward-2-line","share-forward-box-fill","share-forward-box-line","share-forward-fill","share-forward-line","share-line","shield-check-fill","shield-check-line","shield-cross-fill","shield-cross-line","shield-fill","shield-flash-fill","shield-flash-line","shield-keyhole-fill","shield-keyhole-line","shield-line","shield-star-fill","shield-star-line","shield-user-fill","shield-user-line","side-bar-fill","side-bar-line","spam-2-fill","spam-2-line","spam-3-fill","spam-3-line","spam-fill","spam-line","star-fill","star-half-fill","star-half-line","star-half-s-fill","star-half-s-line","star-line","star-s-fill","star-s-line","subtract-fill","subtract-line","thumb-down-fill","thumb-down-line","thumb-up-fill","thumb-up-line","time-fill","time-line","timer-2-fill","timer-2-line","timer-fill","timer-flash-fill","timer-flash-line","timer-line","toggle-fill","toggle-line","upload-2-fill","upload-2-line","upload-cloud-2-fill","upload-cloud-2-line","upload-cloud-fill","upload-cloud-line","upload-fill","upload-line","zoom-in-fill","zoom-in-line","zoom-out-fill","zoom-out-line","account-box-fill","account-box-line","account-circle-fill","account-circle-line","account-pin-box-fill","account-pin-box-line","account-pin-circle-fill","account-pin-circle-line","admin-fill","admin-line","aliens-fill","aliens-line","bear-smile-fill","bear-smile-line","body-scan-fill","body-scan-line","contacts-fill","contacts-line","criminal-fill","criminal-line","emotion-2-fill","emotion-2-line","emotion-fill","emotion-happy-fill","emotion-happy-line","emotion-laugh-fill","emotion-laugh-line","emotion-line","emotion-normal-fill","emotion-normal-line","emotion-sad-fill","emotion-sad-line","emotion-unhappy-fill","emotion-unhappy-line","genderless-fill","genderless-line","ghost-2-fill","ghost-2-line","ghost-fill","ghost-line","ghost-smile-fill","ghost-smile-line","group-2-fill","group-2-line","group-fill","group-line","men-fill","men-line","mickey-fill","mickey-line","open-arm-fill","open-arm-line","parent-fill","parent-line","robot-fill","robot-line","skull-2-fill","skull-2-line","skull-fill","skull-line","spy-fill","spy-line","star-smile-fill","star-smile-line","team-fill","team-line","travesti-fill","travesti-line","user-2-fill","user-2-line","user-3-fill","user-3-line","user-4-fill","user-4-line","user-5-fill","user-5-line","user-6-fill","user-6-line","user-add-fill","user-add-line","user-fill","user-follow-fill","user-follow-line","user-heart-fill","user-heart-line","user-line","user-location-fill","user-location-line","user-received-2-fill","user-received-2-line","user-received-fill","user-received-line","user-search-fill","user-search-line","user-settings-fill","user-settings-line","user-shared-2-fill","user-shared-2-line","user-shared-fill","user-shared-line","user-smile-fill","user-smile-line","user-star-fill","user-star-line","user-unfollow-fill","user-unfollow-line","user-voice-fill","user-voice-line","women-fill","women-line","blaze-fill","blaze-line","celsius-fill","celsius-line","cloud-windy-fill","cloud-windy-line","cloudy-2-fill","cloudy-2-line","cloudy-fill","cloudy-line","drizzle-fill","drizzle-line","earthquake-fill","earthquake-line","fahrenheit-fill","fahrenheit-line","fire-fill","fire-line","flashlight-fill","flashlight-line","flood-fill","flood-line","foggy-fill","foggy-line","hail-fill","hail-line","haze-2-fill","haze-2-line","haze-fill","haze-line","heavy-showers-fill","heavy-showers-line","meteor-fill","meteor-line","mist-fill","mist-line","moon-clear-fill","moon-clear-line","moon-cloudy-fill","moon-cloudy-line","moon-fill","moon-foggy-fill","moon-foggy-line","moon-line","rainbow-fill","rainbow-line","rainy-fill","rainy-line","showers-fill","showers-line","snowy-fill","snowy-line","sun-cloudy-fill","sun-cloudy-line","sun-fill","sun-foggy-fill","sun-foggy-line","sun-line","temp-cold-fill","temp-cold-line","temp-hot-fill","temp-hot-line","thunderstorms-fill","thunderstorms-line","tornado-fill","tornado-line","typhoon-fill","typhoon-line","windy-fill","windy-line"],Pm="_wrapper_199vt_1",Im="_label_199vt_8",zm="_stroke_199vt_172",Am="_disabled_199vt_176",De={wrapper:Pm,label:Im,"lead-icon":"_lead-icon_199vt_9","tail-icon":"_tail-icon_199vt_10","color--gray":"_color--gray_199vt_19","color--blue":"_color--blue_199vt_23","color--green":"_color--green_199vt_27","color--orange":"_color--orange_199vt_31","color--red":"_color--red_199vt_35","color--purple":"_color--purple_199vt_39","color--white":"_color--white_199vt_43","color--surface":"_color--surface_199vt_47","color--white-destructive":"_color--white-destructive_199vt_51","color--surface-destructive":"_color--surface-destructive_199vt_58","color--white-info":"_color--white-info_199vt_65","color--surface-info":"_color--surface-info_199vt_72","color--white-success":"_color--white-success_199vt_79","color--surface-success":"_color--surface-success_199vt_86","size--large":"_size--large_199vt_94","size--medium":"_size--medium_199vt_110","size--small":"_size--small_199vt_126","size--extra-small":"_size--extra-small_199vt_142","shape--rounded":"_shape--rounded_199vt_156","shape--pill":"_shape--pill_199vt_168",stroke:zm,disabled:Am},Oi=({color:e="gray",size:t="md",shape:n="rounded",stroke:r=!1,disabled:i,label:l,leadIcon:s,tailIcon:a})=>{const c=o.useMemo(()=>se(De.wrapper,{[De["color--gray"]]:e==="gray",[De["color--blue"]]:e==="blue",[De["color--green"]]:e==="green",[De["color--orange"]]:e==="orange",[De["color--red"]]:e==="red",[De["color--purple"]]:e==="purple",[De["color--white"]]:e==="white",[De["color--surface"]]:e==="surface",[De["color--white-destructive"]]:e==="white-destructive",[De["color--surface-destructive"]]:e==="surface-destructive",[De["color--white-info"]]:e==="white-info",[De["color--surface-info"]]:e==="surface-info",[De["color--white-success"]]:e==="white-success",[De["color--surface-success"]]:e==="surface-success"},{[De["size--large"]]:t==="lg",[De["size--medium"]]:t==="md",[De["size--small"]]:t==="sm",[De["size--extra-small"]]:t==="xs"},{[De["shape--rounded"]]:n==="rounded",[De["shape--pill"]]:n==="pill"},{[De.stroke]:r},{[De.disabled]:i}),[e,t,n,r,i]);return o.createElement("div",{className:c},s&&o.createElement("span",{className:De["lead-icon"]},s),o.createElement("span",{className:De.label},l),a&&o.createElement("span",{className:De["tail-icon"]},a))},Lm="_wrapper_nv9wz_1",Fm="_text_nv9wz_23",Ym="_badge_nv9wz_29",We={wrapper:Lm,"lead-icon":"_lead-icon_nv9wz_14",text:Fm,badge:Ym,"tail-icon":"_tail-icon_nv9wz_34","size--large":"_size--large_nv9wz_47","size--medium":"_size--medium_nv9wz_68","size--small":"_size--small_nv9wz_89","size--extra-small":"_size--extra-small_nv9wz_110","style--primary":"_style--primary_nv9wz_129","style--secondary":"_style--secondary_nv9wz_146","style--tertiary":"_style--tertiary_nv9wz_177","style--ghost":"_style--ghost_nv9wz_205","target--destructive":"_target--destructive_nv9wz_235","target--info":"_target--info_nv9wz_336","target--success":"_target--success_nv9wz_451","shape--rounded":"_shape--rounded_nv9wz_567","shape--pill":"_shape--pill_nv9wz_579"},jm=e=>o.useMemo(()=>{switch(e){case"lg":return"md";case"md":case"sm":return"sm";case"xs":return"xs"}},[e]),Wm=(e,t)=>o.useMemo(()=>{switch(t){case"default":switch(e){case"primary":return"white";case"secondary":return"gray";case"tertiary":return"white";case"ghost":return"gray"}case"destructive":switch(e){case"primary":return"white-destructive";case"secondary":case"tertiary":case"ghost":return"surface-destructive"}case"info":switch(e){case"primary":return"white-info";case"secondary":case"tertiary":case"ghost":return"surface-info"}case"success":switch(e){case"primary":return"white-success";case"secondary":case"tertiary":case"ghost":return"surface-success"}}},[e,t]),Vm=e=>o.useMemo(()=>{switch(e){case"primary":return!1;case"secondary":return!0;case"tertiary":return!0;case"ghost":return!0}},[e]),di=({size:e="md",style:t="primary",shape:n="rounded",target:r="default",leadIcon:i,tailIcon:l,badge:s,...a})=>{const c=o.useMemo(()=>se(We.wrapper,{[We["size--large"]]:e==="lg",[We["size--medium"]]:e==="md",[We["size--small"]]:e==="sm",[We["size--extra-small"]]:e==="xs"},{[We["style--primary"]]:t==="primary",[We["style--secondary"]]:t==="secondary",[We["style--tertiary"]]:t==="tertiary",[We["style--ghost"]]:t==="ghost"},{[We["target--info"]]:r==="info",[We["target--success"]]:r==="success",[We["target--destructive"]]:r==="destructive"},{[We["shape--rounded"]]:n==="rounded",[We["shape--pill"]]:n==="pill"}),[e,t,r,n]),u=jm(e),f=Wm(t,r),m=Vm(t);return o.createElement("button",{...a,className:c},i&&o.createElement("div",{className:We["lead-icon"]},i),o.createElement("div",{className:We.text},a.children),s&&o.createElement("div",{className:We.badge},o.Children.map(s,d=>{if(o.isValidElement(d)){const h=d;return o.cloneElement(h,{size:u,color:f,stroke:m,disabled:a.disabled})}return d})),l&&o.createElement("div",{className:We["tail-icon"]},l))},Hm="_wrapper_17v8y_1",mt={wrapper:Hm,"lead-icon":"_lead-icon_17v8y_12","size--large":"_size--large_17v8y_23","size--medium":"_size--medium_17v8y_32","size--small":"_size--small_17v8y_41","size--extra-small":"_size--extra-small_17v8y_50","style--primary":"_style--primary_17v8y_60","style--secondary":"_style--secondary_17v8y_71","style--tertiary":"_style--tertiary_17v8y_88","style--ghost":"_style--ghost_17v8y_102","target--destructive":"_target--destructive_17v8y_117","shape--rounded":"_shape--rounded_17v8y_182","shape--pill":"_shape--pill_17v8y_194"},Um=({size:e="md",style:t="primary",shape:n="rounded",target:r,icon:i,...l})=>{const s=o.useMemo(()=>se(mt.wrapper,{[mt["size--large"]]:e==="lg",[mt["size--medium"]]:e==="md",[mt["size--small"]]:e==="sm",[mt["size--extra-small"]]:e==="xs"},{[mt["style--primary"]]:t==="primary",[mt["style--secondary"]]:t==="secondary",[mt["style--tertiary"]]:t==="tertiary",[mt["style--ghost"]]:t==="ghost"},{[mt["target--destructive"]]:r==="destructive"},{[mt["shape--rounded"]]:n==="rounded",[mt["shape--pill"]]:n==="pill"}),[e,t,r,n]);return o.createElement("button",{...l,className:s},o.createElement("div",{className:mt["lead-icon"]},i))},qm="_wrapper_4zl1h_1",Bm="_text_4zl1h_23",Gm="_badge_4zl1h_27",Km="_label_4zl1h_40",cn={wrapper:qm,"lead-icon":"_lead-icon_4zl1h_13",text:Bm,badge:Gm,label:Km,"tail-icon":"_tail-icon_4zl1h_43","size--md":"_size--md_4zl1h_70","size--sm":"_size--sm_4zl1h_96","target--destructive":"_target--destructive_4zl1h_123"},Zm=({size:e="md",style:t="primary",shape:n="rounded",target:r,leadIcon:i,tailIcon:l,label:s,...a})=>{const c=o.useMemo(()=>se(cn.wrapper,{[cn["size--md"]]:e==="md",[cn["size--sm"]]:e==="sm"},{[cn["target--destructive"]]:r==="destructive"}),[e,t,r,n]);return o.createElement("button",{...a,className:c},i&&o.createElement("div",{className:cn["lead-icon"]},i),o.createElement("div",{className:cn.text},a.children),s&&o.createElement("div",{className:cn.badge},o.createElement("span",{className:cn.label},s)),l&&o.createElement("div",{className:cn["tail-icon"]},l))};function Wl(){return typeof window<"u"}function Un(e){return Zo(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(Zo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zo(e){return Wl()?e instanceof Node||e instanceof ct(e).Node:!1}function Re(e){return Wl()?e instanceof Element||e instanceof ct(e).Element:!1}function Fe(e){return Wl()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function co(e){return!Wl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}const Xm=new Set(["inline","contents"]);function Mi(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Xm.has(i)}const Qm=new Set(["table","td","th"]);function Jm(e){return Qm.has(Un(e))}const eh=[":popover-open",":modal"];function Vl(e){return eh.some(t=>{try{return e.matches(t)}catch{return!1}})}const th=["transform","translate","scale","rotate","perspective"],nh=["transform","translate","scale","rotate","perspective","filter"],rh=["paint","layout","strict","content"];function Xo(e){const t=Hl(),n=Re(e)?wt(e):e;return th.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||nh.some(r=>(n.willChange||"").includes(r))||rh.some(r=>(n.contain||"").includes(r))}function ih(e){let t=On(e);for(;Fe(t)&&!xn(t);){if(Xo(t))return t;if(Vl(t))return null;t=On(t)}return null}function Hl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lh=new Set(["html","body","#document"]);function xn(e){return lh.has(Un(e))}function wt(e){return ct(e).getComputedStyle(e)}function Ul(e){return Re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function On(e){if(Un(e)==="html")return e;const t=e.assignedSlot||e.parentNode||co(e)&&e.host||rn(e);return co(t)?t.host:t}function Fu(e){const t=On(e);return xn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fe(t)&&Mi(t)?t:Fu(t)}function Yn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Fu(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),s=ct(i);if(l){const a=uo(s);return t.concat(s,s.visualViewport||[],Mi(i)?i:[],a&&n?Yn(a):[])}return t.concat(i,Yn(i,[],n))}function uo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Vn=Math.min,yt=Math.max,pl=Math.round,xr=Math.floor,en=e=>({x:e,y:e}),sh={left:"right",right:"left",bottom:"top",top:"bottom"},oh={start:"end",end:"start"};function fo(e,t,n){return yt(e,Vn(t,n))}function Fr(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function Yr(e){return e.split("-")[1]}function Yu(e){return e==="x"?"y":"x"}function Qo(e){return e==="y"?"height":"width"}const ah=new Set(["top","bottom"]);function _n(e){return ah.has(Hn(e))?"y":"x"}function Jo(e){return Yu(_n(e))}function ch(e,t,n){n===void 0&&(n=!1);const r=Yr(e),i=Jo(e),l=Qo(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=gl(s)),[s,gl(s)]}function uh(e){const t=gl(e);return[mo(e),t,mo(t)]}function mo(e){return e.replace(/start|end/g,t=>oh[t])}const fc=["left","right"],dc=["right","left"],fh=["top","bottom"],dh=["bottom","top"];function mh(e,t,n){switch(e){case"top":case"bottom":return n?t?dc:fc:t?fc:dc;case"left":case"right":return t?fh:dh;default:return[]}}function hh(e,t,n,r){const i=Yr(e);let l=mh(Hn(e),n==="start",r);return i&&(l=l.map(s=>s+"-"+i),t&&(l=l.concat(l.map(mo)))),l}function gl(e){return e.replace(/left|right|bottom|top/g,t=>sh[t])}function ph(e){return{top:0,right:0,bottom:0,left:0,...e}}function ju(e){return typeof e!="number"?ph(e):{top:e,right:e,bottom:e,left:e}}function vl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
2
- * tabbable 6.2.0
3
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
- */var gh=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],yl=gh.join(","),Wu=typeof Element>"u",zr=Wu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_l=!Wu&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},bl=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),l=i===""||i==="true",s=l||n&&t&&e(t.parentNode);return s},vh=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Vu=function(t,n,r){if(bl(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(yl));return n&&zr.call(t,yl)&&i.unshift(t),i=i.filter(r),i},Hu=function e(t,n,r){for(var i=[],l=Array.from(t);l.length;){var s=l.shift();if(!bl(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,u=e(c,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:s,candidates:u})}else{var f=zr.call(s,yl);f&&r.filter(s)&&(n||!t.includes(s))&&i.push(s);var m=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),d=!bl(m,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(m&&d){var h=e(m===!0?s.children:m.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:s,candidates:h})}else l.unshift.apply(l,s.children)}}return i},Uu=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},qu=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||vh(t))&&!Uu(t)?0:t.tabIndex},yh=function(t,n){var r=qu(t);return r<0&&n&&!Uu(t)?0:r},_h=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Bu=function(t){return t.tagName==="INPUT"},bh=function(t){return Bu(t)&&t.type==="hidden"},wh=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},xh=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Eh=function(t){if(!t.name)return!0;var n=t.form||_l(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var l=xh(i,t.form);return!l||l===t},kh=function(t){return Bu(t)&&t.type==="radio"},Sh=function(t){return kh(t)&&!Eh(t)},Oh=function(t){var n,r=t&&_l(t),i=(n=r)===null||n===void 0?void 0:n.host,l=!1;if(r&&r!==t){var s,a,c;for(l=!!((s=i)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!l&&i;){var u,f,m;r=_l(i),i=(u=r)===null||u===void 0?void 0:u.host,l=!!((f=i)!==null&&f!==void 0&&(m=f.ownerDocument)!==null&&m!==void 0&&m.contains(i))}}return l},mc=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Mh=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var l=zr.call(t,"details>summary:first-of-type"),s=l?t.parentElement:t;if(zr.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var a=t;t;){var c=t.parentElement,u=_l(t);if(c&&!c.shadowRoot&&i(c)===!0)return mc(t);t.assignedSlot?t=t.assignedSlot:!c&&u!==t.ownerDocument?t=u.host:t=c}t=a}if(Oh(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return mc(t);return!1},Dh=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return zr.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},ho=function(t,n){return!(n.disabled||bl(n)||bh(n)||Mh(n,t)||wh(n)||Dh(n))},po=function(t,n){return!(Sh(n)||qu(n)<0||!ho(t,n))},Rh=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Th=function e(t){var n=[],r=[];return t.forEach(function(i,l){var s=!!i.scopeParent,a=s?i.scopeParent:i,c=yh(a,s),u=s?e(i.candidates):a;c===0?s?n.push.apply(n,u):n.push(a):r.push({documentOrder:l,tabIndex:c,item:i,isScope:s,content:u})}),r.sort(_h).reduce(function(i,l){return l.isScope?i.push.apply(i,l.content):i.push(l.content),i},[]).concat(n)},ql=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Hu([t],n.includeContainer,{filter:po.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Rh}):r=Vu(t,n.includeContainer,po.bind(null,n)),Th(r)},Nh=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Hu([t],n.includeContainer,{filter:ho.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Vu(t,n.includeContainer,ho.bind(null,n)),r},Gu=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return zr.call(t,yl)===!1?!1:po(n,t)};function ea(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ku(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Zu(){return/apple/i.test(navigator.vendor)}function go(){const e=/android/i;return e.test(ea())||e.test(Ku())}function Ch(){return ea().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Xu(){return Ku().includes("jsdom/")}const hc="data-floating-ui-focusable",$h="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Ts="ArrowLeft",Ns="ArrowRight",Ph="ArrowUp",Ih="ArrowDown";function Xt(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Ue(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&co(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function vn(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Cs(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function zh(e){return e.matches("html,body")}function qe(e){return e?.ownerDocument||document}function ta(e){return Fe(e)&&e.matches($h)}function vo(e){return e?e.getAttribute("role")==="combobox"&&ta(e):!1}function Ah(e){if(!e||Xu())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function wl(e){return e?e.hasAttribute(hc)?e:e.querySelector("["+hc+"]")||e:null}function cr(e,t,n){return n===void 0&&(n=!0),e.filter(i=>{var l;return i.parentId===t&&(!n||((l=i.context)==null?void 0:l.open))}).flatMap(i=>[i,...cr(e,i.id,n)])}function Lh(e,t){let n,r=-1;function i(l,s){s>r&&(n=l,r=s),cr(e,l).forEach(c=>{i(c.id,s+1)})}return i(t,0),e.find(l=>l.id===n)}function pc(e,t){var n;let r=[],i=(n=e.find(l=>l.id===t))==null?void 0:n.parentId;for(;i;){const l=e.find(s=>s.id===i);i=l?.parentId,l&&(r=r.concat(l))}return r}function lt(e){e.preventDefault(),e.stopPropagation()}function Fh(e){return"nativeEvent"in e}function Qu(e){return e.mozInputSource===0&&e.isTrusted?!0:go()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ju(e){return Xu()?!1:!go()&&e.width===0&&e.height===0||go()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function mi(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var Yh=typeof document<"u",jh=function(){},Ne=Yh?o.useLayoutEffect:jh;const Wh={...x};function et(e){const t=x.useRef(e);return Ne(()=>{t.current=e}),t}const Vh=Wh.useInsertionEffect,Hh=Vh||(e=>e());function Ge(e){const t=x.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Hh(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function Yi(e,t,n){return Math.floor(e/t)!==n}function li(e,t){return t<0||t>=e.current.length}function $s(e,t){return Je(e,{disabledIndices:t})}function gc(e,t){return Je(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Je(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:l=1}=t===void 0?{}:t,s=n;do s+=r?-l:l;while(s>=0&&s<=e.current.length-1&&il(e,s,i));return s}function Uh(e,t){let{event:n,orientation:r,loop:i,rtl:l,cols:s,disabledIndices:a,minIndex:c,maxIndex:u,prevIndex:f,stopEvent:m=!1}=t,d=f;if(n.key===Ph){if(m&&lt(n),f===-1)d=u;else if(d=Je(e,{startingIndex:d,amount:s,decrement:!0,disabledIndices:a}),i&&(f-s<c||d<0)){const h=f%s,p=u%s,g=u-(p-h);p===h?d=u:d=p>h?g:g-s}li(e,d)&&(d=f)}if(n.key===Ih&&(m&&lt(n),f===-1?d=c:(d=Je(e,{startingIndex:f,amount:s,disabledIndices:a}),i&&f+s>u&&(d=Je(e,{startingIndex:f%s-s,amount:s,disabledIndices:a}))),li(e,d)&&(d=f)),r==="both"){const h=xr(f/s);n.key===(l?Ts:Ns)&&(m&&lt(n),f%s!==s-1?(d=Je(e,{startingIndex:f,disabledIndices:a}),i&&Yi(d,s,h)&&(d=Je(e,{startingIndex:f-f%s-1,disabledIndices:a}))):i&&(d=Je(e,{startingIndex:f-f%s-1,disabledIndices:a})),Yi(d,s,h)&&(d=f)),n.key===(l?Ns:Ts)&&(m&&lt(n),f%s!==0?(d=Je(e,{startingIndex:f,decrement:!0,disabledIndices:a}),i&&Yi(d,s,h)&&(d=Je(e,{startingIndex:f+(s-f%s),decrement:!0,disabledIndices:a}))):i&&(d=Je(e,{startingIndex:f+(s-f%s),decrement:!0,disabledIndices:a})),Yi(d,s,h)&&(d=f));const p=xr(u/s)===h;li(e,d)&&(i&&p?d=n.key===(l?Ns:Ts)?u:Je(e,{startingIndex:f-f%s-1,disabledIndices:a}):d=f)}return d}function qh(e,t,n){const r=[];let i=0;return e.forEach((l,s)=>{let{width:a,height:c}=l;if(a>t&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let u=!1;for(n&&(i=0);!u;){const f=[];for(let m=0;m<a;m++)for(let d=0;d<c;d++)f.push(i+m+d*t);i%t+a<=t&&f.every(m=>r[m]==null)?(f.forEach(m=>{r[m]=s}),u=!0):i++}}),[...r]}function Bh(e,t,n,r,i){if(e===-1)return-1;const l=n.indexOf(e),s=t[e];switch(i){case"tl":return l;case"tr":return s?l+s.width-1:l;case"bl":return s?l+(s.height-1)*r:l;case"br":return n.lastIndexOf(e)}}function Gh(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function il(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const r=e.current[t];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}const Di=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ef(e,t){const n=ql(e,Di()),r=n.length;if(r===0)return;const i=Xt(qe(e)),l=n.indexOf(i),s=l===-1?t===1?0:r-1:l+t;return n[s]}function tf(e){return ef(qe(e).body,1)||e}function nf(e){return ef(qe(e).body,-1)||e}function si(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ue(n,r)}function Kh(e){ql(e,Di()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function vc(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}var ji={exports:{}},Ze={};/**
5
- * @license React
6
- * react-dom.production.js
7
- *
8
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */var yc;function Zh(){if(yc)return Ze;yc=1;var e=o;function t(c){var u="https://react.dev/errors/"+c;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)u+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function l(c,u,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:c,containerInfo:u,implementation:f}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(c,u){if(c==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ze.createPortal=function(c,u){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return l(c,u,null,f)},Ze.flushSync=function(c){var u=s.T,f=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=u,r.p=f,r.d.f()}},Ze.preconnect=function(c,u){typeof c=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,r.d.C(c,u))},Ze.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},Ze.preinit=function(c,u){if(typeof c=="string"&&u&&typeof u.as=="string"){var f=u.as,m=a(f,u.crossOrigin),d=typeof u.integrity=="string"?u.integrity:void 0,h=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;f==="style"?r.d.S(c,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:m,integrity:d,fetchPriority:h}):f==="script"&&r.d.X(c,{crossOrigin:m,integrity:d,fetchPriority:h,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ze.preinitModule=function(c,u){if(typeof c=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var f=a(u.as,u.crossOrigin);r.d.M(c,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&r.d.M(c)},Ze.preload=function(c,u){if(typeof c=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var f=u.as,m=a(f,u.crossOrigin);r.d.L(c,f,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ze.preloadModule=function(c,u){if(typeof c=="string")if(u){var f=a(u.as,u.crossOrigin);r.d.m(c,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else r.d.m(c)},Ze.requestFormReset=function(c){r.d.r(c)},Ze.unstable_batchedUpdates=function(c,u){return c(u)},Ze.useFormState=function(c,u,f){return s.H.useFormState(c,u,f)},Ze.useFormStatus=function(){return s.H.useHostTransitionStatus()},Ze.version="19.1.1",Ze}var Xe={};/**
13
- * @license React
14
- * react-dom.development.js
15
- *
16
- * Copyright (c) Meta Platforms, Inc. and affiliates.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */var _c;function Xh(){return _c||(_c=1,process.env.NODE_ENV!=="production"&&function(){function e(){}function t(m){return""+m}function n(m,d,h){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(p);var g=!1}catch{g=!0}return g&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&p[Symbol.toStringTag]||p.constructor.name||"Object"),t(p)),{$$typeof:u,key:p==null?null:""+p,children:m,containerInfo:d,implementation:h}}function r(m,d){if(m==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}function i(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":'something with type "'+typeof m+'"'}function l(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":typeof m=="string"?JSON.stringify(m):typeof m=="number"?"`"+m+"`":'something with type "'+typeof m+'"'}function s(){var m=f.H;return m===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
21
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
22
- 2. You might be breaking the Rules of Hooks
23
- 3. You might have more than one copy of React in the same app
24
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=o,c={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},u=Symbol.for("react.portal"),f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Xe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Xe.createPortal=function(m,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error("Target container is not a DOM element.");return n(m,d,null,h)},Xe.flushSync=function(m){var d=f.T,h=c.p;try{if(f.T=null,c.p=2,m)return m()}finally{f.T=d,c.p=h,c.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Xe.preconnect=function(m,d){typeof m=="string"&&m?d!=null&&typeof d!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",l(d)):d!=null&&typeof d.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",i(d.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(m)),typeof m=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,c.d.C(m,d))},Xe.prefetchDNS=function(m){if(typeof m!="string"||!m)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(m));else if(1<arguments.length){var d=arguments[1];typeof d=="object"&&d.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(d)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(d))}typeof m=="string"&&c.d.D(m)},Xe.preinit=function(m,d){if(typeof m=="string"&&m?d==null||typeof d!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",l(d)):d.as!=="style"&&d.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',l(d.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(m)),typeof m=="string"&&d&&typeof d.as=="string"){var h=d.as,p=r(h,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?c.d.S(m,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):h==="script"&&c.d.X(m,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Xe.preinitModule=function(m,d){var h="";if(typeof m=="string"&&m||(h+=" The `href` argument encountered was "+i(m)+"."),d!==void 0&&typeof d!="object"?h+=" The `options` argument encountered was "+i(d)+".":d&&"as"in d&&d.as!=="script"&&(h+=" The `as` option encountered was "+l(d.as)+"."),h)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",h);else switch(h=d&&typeof d.as=="string"?d.as:"script",h){case"script":break;default:h=l(h),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',h,m)}typeof m=="string"&&(typeof d=="object"&&d!==null?(d.as==null||d.as==="script")&&(h=r(d.as,d.crossOrigin),c.d.M(m,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})):d==null&&c.d.M(m))},Xe.preload=function(m,d){var h="";if(typeof m=="string"&&m||(h+=" The `href` argument encountered was "+i(m)+"."),d==null||typeof d!="object"?h+=" The `options` argument encountered was "+i(d)+".":typeof d.as=="string"&&d.as||(h+=" The `as` option encountered was "+i(d.as)+"."),h&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',h),typeof m=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){h=d.as;var p=r(h,d.crossOrigin);c.d.L(m,h,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Xe.preloadModule=function(m,d){var h="";typeof m=="string"&&m||(h+=" The `href` argument encountered was "+i(m)+"."),d!==void 0&&typeof d!="object"?h+=" The `options` argument encountered was "+i(d)+".":d&&"as"in d&&typeof d.as!="string"&&(h+=" The `as` option encountered was "+i(d.as)+"."),h&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',h),typeof m=="string"&&(d?(h=r(d.as,d.crossOrigin),c.d.m(m,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})):c.d.m(m))},Xe.requestFormReset=function(m){c.d.r(m)},Xe.unstable_batchedUpdates=function(m,d){return m(d)},Xe.useFormState=function(m,d,h){return s().useFormState(m,d,h)},Xe.useFormStatus=function(){return s().useHostTransitionStatus()},Xe.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Xe}var bc;function Qh(){if(bc)return ji.exports;bc=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),ji.exports=Zh()):ji.exports=Xh(),ji.exports}var na=Qh();function wc(e,t,n){let{reference:r,floating:i}=e;const l=_n(t),s=Jo(t),a=Qo(s),c=Hn(t),u=l==="y",f=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let h;switch(c){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:m};break;case"left":h={x:r.x-i.width,y:m};break;default:h={x:r.x,y:r.y}}switch(Yr(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}const Jh=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:s}=n,a=l.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:m}=wc(u,r,c),d=r,h={},p=0;for(let g=0;g<a.length;g++){const{name:v,fn:_}=a[g],{x:b,y:w,data:y,reset:O}=await _({x:f,y:m,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=b??f,m=w??m,h={...h,[v]:{...h[v],...y}},O&&p<=50&&(p++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(u=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:f,y:m}=wc(u,d,c)),g=-1)}return{x:f,y:m,placement:d,strategy:i,middlewareData:h}};async function ra(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:l,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:d=!1,padding:h=0}=Fr(t,e),p=ju(h),v=a[d?m==="floating"?"reference":"floating":m],_=vl(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(v)))==null||n?v:v.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),b=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(a.floating)),y=await(l.isElement==null?void 0:l.isElement(w))?await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1}:{x:1,y:1},O=vl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:w,strategy:c}):b);return{top:(_.top-O.top+p.top)/y.y,bottom:(O.bottom-_.bottom+p.bottom)/y.y,left:(_.left-O.left+p.left)/y.x,right:(O.right-_.right+p.right)/y.x}}const ep=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:f=0}=Fr(e,t)||{};if(u==null)return{};const m=ju(f),d={x:n,y:r},h=Jo(i),p=Qo(h),g=await s.getDimensions(u),v=h==="y",_=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",y=l.reference[p]+l.reference[h]-d[h]-l.floating[p],O=d[h]-l.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let M=T?T[w]:0;(!M||!await(s.isElement==null?void 0:s.isElement(T)))&&(M=a.floating[w]||l.floating[p]);const z=y/2-O/2,P=M/2-g[p]/2-1,D=Vn(m[_],P),I=Vn(m[b],P),A=D,j=M-g[p]-I,S=M/2-g[p]/2+z,N=fo(A,S,j),q=!c.arrow&&Yr(i)!=null&&S!==N&&l.reference[p]/2-(S<A?D:I)-g[p]/2<0,L=q?S<A?S-A:S-j:0;return{[h]:d[h]+L,data:{[h]:N,centerOffset:S-N-L,...q&&{alignmentOffset:L}},reset:q}}}),tp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:l,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...v}=Fr(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const _=Hn(i),b=_n(a),w=Hn(a)===a,y=await(c.isRTL==null?void 0:c.isRTL(u.floating)),O=d||(w||!g?[gl(a)]:uh(a)),T=p!=="none";!d&&T&&O.push(...hh(a,g,p,y));const M=[a,...O],z=await ra(t,v),P=[];let D=((r=l.flip)==null?void 0:r.overflows)||[];if(f&&P.push(z[_]),m){const S=ch(i,s,y);P.push(z[S[0]],z[S[1]])}if(D=[...D,{placement:i,overflows:P}],!P.every(S=>S<=0)){var I,A;const S=(((I=l.flip)==null?void 0:I.index)||0)+1,N=M[S];if(N&&(!(m==="alignment"?b!==_n(N):!1)||D.every(E=>_n(E.placement)===b?E.overflows[0]>0:!0)))return{data:{index:S,overflows:D},reset:{placement:N}};let q=(A=D.filter(L=>L.overflows[0]<=0).sort((L,E)=>L.overflows[1]-E.overflows[1])[0])==null?void 0:A.placement;if(!q)switch(h){case"bestFit":{var j;const L=(j=D.filter(E=>{if(T){const F=_n(E.placement);return F===b||F==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(F=>F>0).reduce((F,X)=>F+X,0)]).sort((E,F)=>E[1]-F[1])[0])==null?void 0:j[0];L&&(q=L);break}case"initialPlacement":q=a;break}if(i!==q)return{reset:{placement:q}}}return{}}}},np=new Set(["left","top"]);async function rp(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Hn(n),a=Yr(n),c=_n(n)==="y",u=np.has(s)?-1:1,f=l&&c?-1:1,m=Fr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),c?{x:h*f,y:d*u}:{x:d*u,y:h*f}}const ip=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:s,middlewareData:a}=t,c=await rp(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:l+c.y,data:{...c,placement:s}}}}},lp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:b}=v;return{x:_,y:b}}},...c}=Fr(e,t),u={x:n,y:r},f=await ra(t,c),m=_n(Hn(i)),d=Yu(m);let h=u[d],p=u[m];if(l){const v=d==="y"?"top":"left",_=d==="y"?"bottom":"right",b=h+f[v],w=h-f[_];h=fo(b,h,w)}if(s){const v=m==="y"?"top":"left",_=m==="y"?"bottom":"right",b=p+f[v],w=p-f[_];p=fo(b,p,w)}const g=a.fn({...t,[d]:h,[m]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:l,[m]:s}}}}}},sp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:l,platform:s,elements:a}=t,{apply:c=()=>{},...u}=Fr(e,t),f=await ra(t,u),m=Hn(i),d=Yr(i),h=_n(i)==="y",{width:p,height:g}=l.floating;let v,_;m==="top"||m==="bottom"?(v=m,_=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=m,v=d==="end"?"top":"bottom");const b=g-f.top-f.bottom,w=p-f.left-f.right,y=Vn(g-f[v],b),O=Vn(p-f[_],w),T=!t.middlewareData.shift;let M=y,z=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(z=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=b),T&&!d){const D=yt(f.left,0),I=yt(f.right,0),A=yt(f.top,0),j=yt(f.bottom,0);h?z=p-2*(D!==0||I!==0?D+I:yt(f.left,f.right)):M=g-2*(A!==0||j!==0?A+j:yt(f.top,f.bottom))}await c({...t,availableWidth:z,availableHeight:M});const P=await s.getDimensions(a.floating);return p!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function rf(e){const t=wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Fe(e),l=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=pl(n)!==l||pl(r)!==s;return a&&(n=l,r=s),{width:n,height:r,$:a}}function ia(e){return Re(e)?e:e.contextElement}function Dr(e){const t=ia(e);if(!Fe(t))return en(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=rf(t);let s=(l?pl(n.width):n.width)/r,a=(l?pl(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const op=en(0);function lf(e){const t=ct(e);return!Hl()||!t.visualViewport?op:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ap(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function dr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=ia(e);let s=en(1);t&&(r?Re(r)&&(s=Dr(r)):s=Dr(e));const a=ap(l,n,r)?lf(l):en(0);let c=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,m=i.height/s.y;if(l){const d=ct(l),h=r&&Re(r)?ct(r):r;let p=d,g=uo(p);for(;g&&r&&h!==p;){const v=Dr(g),_=g.getBoundingClientRect(),b=wt(g),w=_.left+(g.clientLeft+parseFloat(b.paddingLeft))*v.x,y=_.top+(g.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,u*=v.y,f*=v.x,m*=v.y,c+=w,u+=y,p=ct(g),g=uo(p)}}return vl({width:f,height:m,x:c,y:u})}function la(e,t){const n=Ul(e).scrollLeft;return t?t.left+n:dr(rn(e)).left+n}function sf(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:la(e,r)),l=r.top+t.scrollTop;return{x:i,y:l}}function cp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",s=rn(r),a=t?Vl(t.floating):!1;if(r===s||a&&l)return n;let c={scrollLeft:0,scrollTop:0},u=en(1);const f=en(0),m=Fe(r);if((m||!m&&!l)&&((Un(r)!=="body"||Mi(s))&&(c=Ul(r)),Fe(r))){const h=dr(r);u=Dr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const d=s&&!m&&!l?sf(s,c,!0):en(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-c.scrollTop*u.y+f.y+d.y}}function up(e){return Array.from(e.getClientRects())}function fp(e){const t=rn(e),n=Ul(e),r=e.ownerDocument.body,i=yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+la(e);const a=-n.scrollTop;return wt(r).direction==="rtl"&&(s+=yt(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:s,y:a}}function dp(e,t){const n=ct(e),r=rn(e),i=n.visualViewport;let l=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){l=i.width,s=i.height;const u=Hl();(!u||u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:l,height:s,x:a,y:c}}const mp=new Set(["absolute","fixed"]);function hp(e,t){const n=dr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=Fe(e)?Dr(e):en(1),s=e.clientWidth*l.x,a=e.clientHeight*l.y,c=i*l.x,u=r*l.y;return{width:s,height:a,x:c,y:u}}function xc(e,t,n){let r;if(t==="viewport")r=dp(e,n);else if(t==="document")r=fp(rn(e));else if(Re(t))r=hp(t,n);else{const i=lf(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return vl(r)}function of(e,t){const n=On(e);return n===t||!Re(n)||xn(n)?!1:wt(n).position==="fixed"||of(n,t)}function pp(e,t){const n=t.get(e);if(n)return n;let r=Yn(e,[],!1).filter(a=>Re(a)&&Un(a)!=="body"),i=null;const l=wt(e).position==="fixed";let s=l?On(e):e;for(;Re(s)&&!xn(s);){const a=wt(s),c=Xo(s);!c&&a.position==="fixed"&&(i=null),(l?!c&&!i:!c&&a.position==="static"&&!!i&&mp.has(i.position)||Mi(s)&&!c&&of(e,s))?r=r.filter(f=>f!==s):i=a,s=On(s)}return t.set(e,r),r}function gp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Vl(t)?[]:pp(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((u,f)=>{const m=xc(t,f,i);return u.top=yt(m.top,u.top),u.right=Vn(m.right,u.right),u.bottom=Vn(m.bottom,u.bottom),u.left=yt(m.left,u.left),u},xc(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function vp(e){const{width:t,height:n}=rf(e);return{width:t,height:n}}function yp(e,t,n){const r=Fe(t),i=rn(t),l=n==="fixed",s=dr(e,!0,l,t);let a={scrollLeft:0,scrollTop:0};const c=en(0);function u(){c.x=la(i)}if(r||!r&&!l)if((Un(t)!=="body"||Mi(i))&&(a=Ul(t)),r){const h=dr(t,!0,l,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();l&&!r&&i&&u();const f=i&&!r&&!l?sf(i,a):en(0),m=s.left+a.scrollLeft-c.x-f.x,d=s.top+a.scrollTop-c.y-f.y;return{x:m,y:d,width:s.width,height:s.height}}function Ps(e){return wt(e).position==="static"}function Ec(e,t){if(!Fe(e)||wt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return rn(e)===n&&(n=n.ownerDocument.body),n}function af(e,t){const n=ct(e);if(Vl(e))return n;if(!Fe(e)){let i=On(e);for(;i&&!xn(i);){if(Re(i)&&!Ps(i))return i;i=On(i)}return n}let r=Ec(e,t);for(;r&&Jm(r)&&Ps(r);)r=Ec(r,t);return r&&xn(r)&&Ps(r)&&!Xo(r)?n:r||ih(e)||n}const _p=async function(e){const t=this.getOffsetParent||af,n=this.getDimensions,r=await n(e.floating);return{reference:yp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bp(e){return wt(e).direction==="rtl"}const wp={convertOffsetParentRelativeRectToViewportRelativeRect:cp,getDocumentElement:rn,getClippingRect:gp,getOffsetParent:af,getElementRects:_p,getClientRects:up,getDimensions:vp,getScale:Dr,isElement:Re,isRTL:bp};function cf(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xp(e,t){let n=null,r;const i=rn(e);function l(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),l();const u=e.getBoundingClientRect(),{left:f,top:m,width:d,height:h}=u;if(a||t(),!d||!h)return;const p=xr(m),g=xr(i.clientWidth-(f+d)),v=xr(i.clientHeight-(m+h)),_=xr(f),w={rootMargin:-p+"px "+-g+"px "+-v+"px "+-_+"px",threshold:yt(0,Vn(1,c))||1};let y=!0;function O(T){const M=T[0].intersectionRatio;if(M!==c){if(!y)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!cf(u,e.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(O,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,w)}n.observe(e)}return s(!0),l}function sa(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=ia(e),f=i||l?[...u?Yn(u):[],...Yn(t)]:[];f.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),l&&_.addEventListener("resize",n)});const m=u&&a?xp(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(_=>{let[b]=_;b&&b.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let p,g=c?dr(e):null;c&&v();function v(){const _=dr(e);g&&!cf(g,_)&&n(),g=_,p=requestAnimationFrame(v)}return n(),()=>{var _;f.forEach(b=>{i&&b.removeEventListener("scroll",n),l&&b.removeEventListener("resize",n)}),m?.(),(_=h)==null||_.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const Ep=ip,kp=lp,Sp=tp,Op=sp,kc=ep,Mp=(e,t,n)=>{const r=new Map,i={platform:wp,...n},l={...i.platform,_c:r};return Jh(e,t,{...i,platform:l})};var Dp=typeof document<"u",Rp=function(){},ll=Dp?o.useLayoutEffect:Rp;function xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!xl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const l=i[r];if(!(l==="_owner"&&e.$$typeof)&&!xl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function uf(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sc(e,t){const n=uf(e);return Math.round(t*n)/n}function Is(e){const t=x.useRef(e);return ll(()=>{t.current=e}),t}function Tp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[f,m]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=x.useState(r);xl(d,r)||h(r);const[p,g]=x.useState(null),[v,_]=x.useState(null),b=x.useCallback(E=>{E!==T.current&&(T.current=E,g(E))},[]),w=x.useCallback(E=>{E!==M.current&&(M.current=E,_(E))},[]),y=l||p,O=s||v,T=x.useRef(null),M=x.useRef(null),z=x.useRef(f),P=c!=null,D=Is(c),I=Is(i),A=Is(u),j=x.useCallback(()=>{if(!T.current||!M.current)return;const E={placement:t,strategy:n,middleware:d};I.current&&(E.platform=I.current),Mp(T.current,M.current,E).then(F=>{const X={...F,isPositioned:A.current!==!1};S.current&&!xl(z.current,X)&&(z.current=X,na.flushSync(()=>{m(X)}))})},[d,t,n,I,A]);ll(()=>{u===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,m(E=>({...E,isPositioned:!1})))},[u]);const S=x.useRef(!1);ll(()=>(S.current=!0,()=>{S.current=!1}),[]),ll(()=>{if(y&&(T.current=y),O&&(M.current=O),y&&O){if(D.current)return D.current(y,O,j);j()}},[y,O,j,D,P]);const N=x.useMemo(()=>({reference:T,floating:M,setReference:b,setFloating:w}),[b,w]),q=x.useMemo(()=>({reference:y,floating:O}),[y,O]),L=x.useMemo(()=>{const E={position:n,left:0,top:0};if(!q.floating)return E;const F=Sc(q.floating,f.x),X=Sc(q.floating,f.y);return a?{...E,transform:"translate("+F+"px, "+X+"px)",...uf(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:X}},[n,a,q.floating,f.x,f.y]);return x.useMemo(()=>({...f,update:j,refs:N,elements:q,floatingStyles:L}),[f,j,N,q,L])}const Np=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?kc({element:r.current,padding:i}).fn(n):{}:r?kc({element:r,padding:i}).fn(n):{}}}},ff=(e,t)=>({...Ep(e),options:[e,t]}),Cp=(e,t)=>({...kp(e),options:[e,t]}),oa=(e,t)=>({...Sp(e),options:[e,t]}),df=(e,t)=>({...Op(e),options:[e,t]}),$p=(e,t)=>({...Np(e),options:[e,t]});function aa(e){const t=x.useRef(void 0),n=x.useCallback(r=>{const i=e.map(l=>{if(l!=null){if(typeof l=="function"){const s=l,a=s(r);return typeof a=="function"?a:()=>{s(null)}}return l.current=r,()=>{l.current=null}}});return()=>{i.forEach(l=>l?.())}},e);return x.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const Pp="data-floating-ui-focusable",Oc="active",Mc="selected",Ri="ArrowLeft",Ti="ArrowRight",mf="ArrowUp",Bl="ArrowDown",Ip={...x};let Dc=!1,zp=0;const Rc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+zp++;function Ap(){const[e,t]=x.useState(()=>Dc?Rc():void 0);return Ne(()=>{e==null&&t(Rc())},[]),x.useEffect(()=>{Dc=!0},[]),e}const Lp=Ip.useId,Ni=Lp||Ap;let hi;process.env.NODE_ENV!=="production"&&(hi=new Set);function sl(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=hi)!=null&&e.has(i))){var l;(l=hi)==null||l.add(i),console.warn(i)}}function Fp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=hi)!=null&&e.has(i))){var l;(l=hi)==null||l.add(i),console.error(i)}}const Tc=x.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:l,shift:s}},width:a=14,height:c=7,tipRadius:u=0,strokeWidth:f=0,staticOffset:m,stroke:d,d:h,style:{transform:p,...g}={},...v}=t;process.env.NODE_ENV!=="production"&&(n||sl("The `ref` prop is required for `FloatingArrow`."));const _=Ni(),[b,w]=x.useState(!1);if(Ne(()=>{if(!i)return;wt(i).direction==="rtl"&&w(!0)},[i]),!i)return null;const[y,O]=r.split("-"),T=y==="top"||y==="bottom";let M=m;(T&&s!=null&&s.x||!T&&s!=null&&s.y)&&(M=null);const z=f*2,P=z/2,D=a/2*(u/-8+1),I=c/2*u/4,A=!!h,j=M&&O==="end"?"bottom":"top";let S=M&&O==="end"?"right":"left";M&&b&&(S=O==="end"?"left":"right");const N=l?.x!=null?M||l.x:"",q=l?.y!=null?M||l.y:"",L=h||"M0,0"+(" H"+a)+(" L"+(a-D)+","+(c-I))+(" Q"+a/2+","+c+" "+D+","+(c-I))+" Z",E={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[y];return Be.jsxs("svg",{...v,"aria-hidden":!0,ref:n,width:A?a:a+z,height:a,viewBox:"0 0 "+a+" "+(c>a?c:a),style:{position:"absolute",pointerEvents:"none",[S]:N,[j]:q,[y]:T||A?"100%":"calc(100% - "+z/2+"px)",transform:[E,p].filter(F=>!!F).join(" "),...g},children:[z>0&&Be.jsx("path",{clipPath:"url(#"+_+")",fill:"none",stroke:d,strokeWidth:z+(h?0:1),d:L}),Be.jsx("path",{stroke:z&&!h?v.fill:"none",d:L}),Be.jsx("clipPath",{id:_,children:Be.jsx("rect",{x:-P,y:P*(A?-1:1),width:a+z,height:a})})]})});function Yp(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const jp=x.createContext(null),Wp=x.createContext(null),Gl=()=>{var e;return((e=x.useContext(jp))==null?void 0:e.id)||null},Ci=()=>x.useContext(Wp);function mr(e){return"data-floating-ui-"+e}function gt(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const Nc=mr("safe-polygon");function zs(e,t,n){if(n&&!mi(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}function As(e){return typeof e=="function"?e():e}function Vp(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:l,elements:s}=e,{enabled:a=!0,delay:c=0,handleClose:u=null,mouseOnly:f=!1,restMs:m=0,move:d=!0}=t,h=Ci(),p=Gl(),g=et(u),v=et(c),_=et(n),b=et(m),w=x.useRef(),y=x.useRef(-1),O=x.useRef(),T=x.useRef(-1),M=x.useRef(!0),z=x.useRef(!1),P=x.useRef(()=>{}),D=x.useRef(!1),I=Ge(()=>{var L;const E=(L=i.current.openEvent)==null?void 0:L.type;return E?.includes("mouse")&&E!=="mousedown"});x.useEffect(()=>{if(!a)return;function L(E){let{open:F}=E;F||(gt(y),gt(T),M.current=!0,D.current=!1)}return l.on("openchange",L),()=>{l.off("openchange",L)}},[a,l]),x.useEffect(()=>{if(!a||!g.current||!n)return;function L(F){I()&&r(!1,F,"hover")}const E=qe(s.floating).documentElement;return E.addEventListener("mouseleave",L),()=>{E.removeEventListener("mouseleave",L)}},[s.floating,n,r,a,g,I]);const A=x.useCallback(function(L,E,F){E===void 0&&(E=!0),F===void 0&&(F="hover");const X=zs(v.current,"close",w.current);X&&!O.current?(gt(y),y.current=window.setTimeout(()=>r(!1,L,F),X)):E&&(gt(y),r(!1,L,F))},[v,r]),j=Ge(()=>{P.current(),O.current=void 0}),S=Ge(()=>{if(z.current){const L=qe(s.floating).body;L.style.pointerEvents="",L.removeAttribute(Nc),z.current=!1}}),N=Ge(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);x.useEffect(()=>{if(!a)return;function L(C){if(gt(y),M.current=!1,f&&!mi(w.current)||As(b.current)>0&&!zs(v.current,"open"))return;const k=zs(v.current,"open",w.current);k?y.current=window.setTimeout(()=>{_.current||r(!0,C,"hover")},k):n||r(!0,C,"hover")}function E(C){if(N()){S();return}P.current();const k=qe(s.floating);if(gt(T),D.current=!1,g.current&&i.current.floatingContext){n||gt(y),O.current=g.current({...i.current.floatingContext,tree:h,x:C.clientX,y:C.clientY,onClose(){S(),j(),N()||A(C,!0,"safe-polygon")}});const R=O.current;k.addEventListener("mousemove",R),P.current=()=>{k.removeEventListener("mousemove",R)};return}(w.current==="touch"?!Ue(s.floating,C.relatedTarget):!0)&&A(C)}function F(C){N()||i.current.floatingContext&&(g.current==null||g.current({...i.current.floatingContext,tree:h,x:C.clientX,y:C.clientY,onClose(){S(),j(),N()||A(C)}})(C))}function X(){gt(y)}function B(C){N()||A(C,!1)}if(Re(s.domReference)){const C=s.domReference,k=s.floating;return n&&C.addEventListener("mouseleave",F),d&&C.addEventListener("mousemove",L,{once:!0}),C.addEventListener("mouseenter",L),C.addEventListener("mouseleave",E),k&&(k.addEventListener("mouseleave",F),k.addEventListener("mouseenter",X),k.addEventListener("mouseleave",B)),()=>{n&&C.removeEventListener("mouseleave",F),d&&C.removeEventListener("mousemove",L),C.removeEventListener("mouseenter",L),C.removeEventListener("mouseleave",E),k&&(k.removeEventListener("mouseleave",F),k.removeEventListener("mouseenter",X),k.removeEventListener("mouseleave",B))}}},[s,a,e,f,d,A,j,S,r,n,_,h,v,g,i,N,b]),Ne(()=>{var L;if(a&&n&&(L=g.current)!=null&&(L=L.__options)!=null&&L.blockPointerEvents&&I()){z.current=!0;const F=s.floating;if(Re(s.domReference)&&F){var E;const X=qe(s.floating).body;X.setAttribute(Nc,"");const B=s.domReference,C=h==null||(E=h.nodesRef.current.find(k=>k.id===p))==null||(E=E.context)==null?void 0:E.elements.floating;return C&&(C.style.pointerEvents=""),X.style.pointerEvents="none",B.style.pointerEvents="auto",F.style.pointerEvents="auto",()=>{X.style.pointerEvents="",B.style.pointerEvents="",F.style.pointerEvents=""}}}},[a,n,p,s,h,g,I]),Ne(()=>{n||(w.current=void 0,D.current=!1,j(),S())},[n,j,S]),x.useEffect(()=>()=>{j(),gt(y),gt(T),S()},[a,s.domReference,j,S]);const q=x.useMemo(()=>{function L(E){w.current=E.pointerType}return{onPointerDown:L,onPointerEnter:L,onMouseMove(E){const{nativeEvent:F}=E;function X(){!M.current&&!_.current&&r(!0,F,"hover")}f&&!mi(w.current)||n||As(b.current)===0||D.current&&E.movementX**2+E.movementY**2<2||(gt(T),w.current==="touch"?X():(D.current=!0,T.current=window.setTimeout(X,As(b.current))))}}},[f,r,n,_,b]);return x.useMemo(()=>a?{reference:q}:{},[a,q])}let Cc=0;function ir(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Cc);const l=()=>e?.focus({preventScroll:n});i?l():Cc=requestAnimationFrame(l)}function Hp(e){return e?.ownerDocument||document}const Rr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function $c(e){return e==="inert"?Rr.inert:e==="aria-hidden"?Rr["aria-hidden"]:Rr.none}let Wi=new WeakSet,Vi={},Ls=0;const Up=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,hf=e=>e&&(e.host||hf(e.parentNode)),qp=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=hf(n);return e.contains(r)?r:null}).filter(n=>n!=null);function Bp(e,t,n,r){const i="data-floating-ui-inert",l=r?"inert":n?"aria-hidden":null,s=qp(t,e),a=new Set,c=new Set(s),u=[];Vi[i]||(Vi[i]=new WeakMap);const f=Vi[i];s.forEach(m),d(t),a.clear();function m(h){!h||a.has(h)||(a.add(h),h.parentNode&&m(h.parentNode))}function d(h){!h||c.has(h)||[].forEach.call(h.children,p=>{if(Un(p)!=="script")if(a.has(p))d(p);else{const g=l?p.getAttribute(l):null,v=g!==null&&g!=="false",_=$c(l),b=(_.get(p)||0)+1,w=(f.get(p)||0)+1;_.set(p,b),f.set(p,w),u.push(p),b===1&&v&&Wi.add(p),w===1&&p.setAttribute(i,""),!v&&l&&p.setAttribute(l,l==="inert"?"":"true")}})}return Ls++,()=>{u.forEach(h=>{const p=$c(l),v=(p.get(h)||0)-1,_=(f.get(h)||0)-1;p.set(h,v),f.set(h,_),v||(!Wi.has(h)&&l&&h.removeAttribute(l),Wi.delete(h)),_||h.removeAttribute(i)}),Ls--,Ls||(Rr.inert=new WeakMap,Rr["aria-hidden"]=new WeakMap,Rr.none=new WeakMap,Wi=new WeakSet,Vi={})}}function Pc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=Hp(e[0]).body;return Bp(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Kl={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},El=x.forwardRef(function(t,n){const[r,i]=x.useState();Ne(()=>{Zu()&&i("button")},[]);const l={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[mr("focus-guard")]:"",style:Kl};return Be.jsx("span",{...t,...l})}),pf=x.createContext(null),Ic=mr("portal");function Gp(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Ni(),i=gf(),[l,s]=x.useState(null),a=x.useRef(null);return Ne(()=>()=>{l?.remove(),queueMicrotask(()=>{a.current=null})},[l]),Ne(()=>{if(!r||a.current)return;const c=t?document.getElementById(t):null;if(!c)return;const u=document.createElement("div");u.id=r,u.setAttribute(Ic,""),c.appendChild(u),a.current=u,s(u)},[t,r]),Ne(()=>{if(n===null||!r||a.current)return;let c=n||i?.portalNode;c&&!Zo(c)&&(c=c.current),c=c||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,c.appendChild(u));const f=document.createElement("div");f.id=r,f.setAttribute(Ic,""),c=u||c,c.appendChild(f),a.current=f,s(f)},[t,n,r,i]),l}function Zl(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,l=Gp({id:n,root:r}),[s,a]=x.useState(null),c=x.useRef(null),u=x.useRef(null),f=x.useRef(null),m=x.useRef(null),d=s?.modal,h=s?.open,p=!!s&&!s.modal&&s.open&&i&&!!(r||l);return x.useEffect(()=>{if(!l||!i||d)return;function g(v){l&&si(v)&&(v.type==="focusin"?vc:Kh)(l)}return l.addEventListener("focusin",g,!0),l.addEventListener("focusout",g,!0),()=>{l.removeEventListener("focusin",g,!0),l.removeEventListener("focusout",g,!0)}},[l,i,d]),x.useEffect(()=>{l&&(h||vc(l))},[h,l]),Be.jsxs(pf.Provider,{value:x.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:f,afterInsideRef:m,portalNode:l,setFocusManagerState:a}),[i,l]),children:[p&&l&&Be.jsx(El,{"data-type":"outside",ref:c,onFocus:g=>{if(si(g,l)){var v;(v=f.current)==null||v.focus()}else{const _=s?s.domReference:null,b=nf(_);b?.focus()}}}),p&&l&&Be.jsx("span",{"aria-owns":l.id,style:Kl}),l&&na.createPortal(t,l),p&&l&&Be.jsx(El,{"data-type":"outside",ref:u,onFocus:g=>{if(si(g,l)){var v;(v=m.current)==null||v.focus()}else{const _=s?s.domReference:null,b=tf(_);b?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,g.nativeEvent,"focus-out")}}})]})}const gf=()=>x.useContext(pf);function zc(e){return x.useMemo(()=>t=>{e.forEach(n=>{n&&(n.current=t)})},e)}const Kp=20;let zn=[];function ca(){zn=zn.filter(e=>e.isConnected)}function Zp(e){ca(),e&&Un(e)!=="body"&&(zn.push(e),zn.length>Kp&&(zn=zn.slice(-20)))}function Ac(){return ca(),zn[zn.length-1]}function Xp(e){const t=Di();return Gu(e,t)?e:ql(e,t)[0]||e}function Lc(e,t){var n;if(!t.current.includes("floating")&&!((n=e.getAttribute("role"))!=null&&n.includes("dialog")))return;const r=Di(),l=Nh(e,r).filter(a=>{const c=a.getAttribute("data-tabindex")||"";return Gu(a,r)||a.hasAttribute("data-tabindex")&&!c.startsWith("-")}),s=e.getAttribute("tabindex");t.current.includes("floating")||l.length===0?s!=="0"&&e.setAttribute("tabindex","0"):(s!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const Qp=x.forwardRef(function(t,n){return Be.jsx("button",{...t,type:"button",ref:n,tabIndex:-1,style:Kl})});function ua(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:l=!0,initialFocus:s=0,returnFocus:a=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:m=!0,outsideElementsInert:d=!1,getInsideElements:h=()=>[]}=e,{open:p,onOpenChange:g,events:v,dataRef:_,elements:{domReference:b,floating:w}}=t,y=Ge(()=>{var Q;return(Q=_.current.floatingContext)==null?void 0:Q.nodeId}),O=Ge(h),T=typeof s=="number"&&s<0,M=vo(b)&&T,z=Up(),P=z?l:!0,D=!P||z&&d,I=et(i),A=et(s),j=et(a),S=Ci(),N=gf(),q=x.useRef(null),L=x.useRef(null),E=x.useRef(!1),F=x.useRef(!1),X=x.useRef(-1),B=x.useRef(-1),C=N!=null,k=wl(w),$=Ge(function(Q){return Q===void 0&&(Q=k),Q?ql(Q,Di()):[]}),R=Ge(Q=>{const ne=$(Q);return I.current.map(G=>b&&G==="reference"?b:k&&G==="floating"?k:ne).filter(Boolean).flat()});x.useEffect(()=>{if(r||!u)return;function Q(G){if(G.key==="Tab"){Ue(k,Xt(qe(k)))&&$().length===0&&!M&&lt(G);const oe=R(),me=vn(G);I.current[0]==="reference"&&me===b&&(lt(G),G.shiftKey?ir(oe[oe.length-1]):ir(oe[1])),I.current[1]==="floating"&&me===k&&G.shiftKey&&(lt(G),ir(oe[0]))}}const ne=qe(k);return ne.addEventListener("keydown",Q),()=>{ne.removeEventListener("keydown",Q)}},[r,b,k,u,I,M,$,R]),x.useEffect(()=>{if(r||!w)return;function Q(ne){const G=vn(ne),me=$().indexOf(G);me!==-1&&(X.current=me)}return w.addEventListener("focusin",Q),()=>{w.removeEventListener("focusin",Q)}},[r,w,$]),x.useEffect(()=>{if(r||!m)return;function Q(){F.current=!0,setTimeout(()=>{F.current=!1})}function ne(me){const ie=me.relatedTarget,ge=me.currentTarget,ce=vn(me);queueMicrotask(()=>{const fe=y(),ve=!(Ue(b,ie)||Ue(w,ie)||Ue(ie,w)||Ue(N?.portalNode,ie)||ie!=null&&ie.hasAttribute(mr("focus-guard"))||S&&(cr(S.nodesRef.current,fe).find(U=>{var J,Z;return Ue((J=U.context)==null?void 0:J.elements.floating,ie)||Ue((Z=U.context)==null?void 0:Z.elements.domReference,ie)})||pc(S.nodesRef.current,fe).find(U=>{var J,Z,pe;return[(J=U.context)==null?void 0:J.elements.floating,wl((Z=U.context)==null?void 0:Z.elements.floating)].includes(ie)||((pe=U.context)==null?void 0:pe.elements.domReference)===ie})));if(ge===b&&k&&Lc(k,I),c&&ge!==b&&!(ce!=null&&ce.isConnected)&&Xt(qe(k))===qe(k).body){Fe(k)&&k.focus();const U=X.current,J=$(),Z=J[U]||J[J.length-1]||k;Fe(Z)&&Z.focus()}if(_.current.insideReactTree){_.current.insideReactTree=!1;return}(M||!u)&&ie&&ve&&!F.current&&ie!==Ac()&&(E.current=!0,g(!1,me,"focus-out"))})}const G=!!(!S&&N);function oe(){gt(B),_.current.insideReactTree=!0,B.current=window.setTimeout(()=>{_.current.insideReactTree=!1})}if(w&&Fe(b))return b.addEventListener("focusout",ne),b.addEventListener("pointerdown",Q),w.addEventListener("focusout",ne),G&&w.addEventListener("focusout",oe,!0),()=>{b.removeEventListener("focusout",ne),b.removeEventListener("pointerdown",Q),w.removeEventListener("focusout",ne),G&&w.removeEventListener("focusout",oe,!0)}},[r,b,w,k,u,S,N,g,m,c,$,M,y,I,_]);const Y=x.useRef(null),H=x.useRef(null),K=zc([Y,N?.beforeInsideRef]),te=zc([H,N?.afterInsideRef]);x.useEffect(()=>{var Q,ne;if(r||!w)return;const G=Array.from((N==null||(Q=N.portalNode)==null?void 0:Q.querySelectorAll("["+mr("portal")+"]"))||[]),me=(ne=(S?pc(S.nodesRef.current,y()):[]).find(ce=>{var fe;return vo(((fe=ce.context)==null?void 0:fe.elements.domReference)||null)}))==null||(ne=ne.context)==null?void 0:ne.elements.domReference,ie=[w,me,...G,...O(),q.current,L.current,Y.current,H.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,I.current.includes("reference")||M?b:null].filter(ce=>ce!=null),ge=u||M?Pc(ie,!D,D):Pc(ie);return()=>{ge()}},[r,b,w,u,I,N,M,P,D,S,y,O]),Ne(()=>{if(r||!Fe(k))return;const Q=qe(k),ne=Xt(Q);queueMicrotask(()=>{const G=R(k),oe=A.current,me=(typeof oe=="number"?G[oe]:oe.current)||k,ie=Ue(k,ne);!T&&!ie&&p&&ir(me,{preventScroll:me===k})})},[r,p,k,T,R,A]),Ne(()=>{if(r||!k)return;const Q=qe(k),ne=Xt(Q);Zp(ne);function G(ie){let{reason:ge,event:ce,nested:fe}=ie;if(["hover","safe-polygon"].includes(ge)&&ce.type==="mouseleave"&&(E.current=!0),ge==="outside-press")if(fe)E.current=!1;else if(Qu(ce)||Ju(ce))E.current=!1;else{let ve=!1;document.createElement("div").focus({get preventScroll(){return ve=!0,!1}}),ve?E.current=!1:E.current=!0}}v.on("openchange",G);const oe=Q.createElement("span");oe.setAttribute("tabindex","-1"),oe.setAttribute("aria-hidden","true"),Object.assign(oe.style,Kl),C&&b&&b.insertAdjacentElement("afterend",oe);function me(){if(typeof j.current=="boolean"){const ie=b||Ac();return ie&&ie.isConnected?ie:oe}return j.current.current||oe}return()=>{v.off("openchange",G);const ie=Xt(Q),ge=Ue(w,ie)||S&&cr(S.nodesRef.current,y(),!1).some(fe=>{var ve;return Ue((ve=fe.context)==null?void 0:ve.elements.floating,ie)}),ce=me();queueMicrotask(()=>{const fe=Xp(ce);j.current&&!E.current&&Fe(fe)&&(!(fe!==ie&&ie!==Q.body)||ge)&&fe.focus({preventScroll:!0}),oe.remove()})}},[r,w,k,j,_,v,S,C,b,y]),x.useEffect(()=>(queueMicrotask(()=>{E.current=!1}),()=>{queueMicrotask(ca)}),[r]),Ne(()=>{if(!r&&N)return N.setFocusManagerState({modal:u,closeOnFocusOut:m,open:p,onOpenChange:g,domReference:b}),()=>{N.setFocusManagerState(null)}},[r,N,u,p,g,m,b]),Ne(()=>{r||k&&Lc(k,I)},[r,k,I]);function le(Q){return r||!f||!u?null:Be.jsx(Qp,{ref:Q==="start"?q:L,onClick:ne=>g(!1,ne.nativeEvent),children:typeof f=="string"?f:"Dismiss"})}const he=!r&&P&&(u?!M:!0)&&(C||u);return Be.jsxs(Be.Fragment,{children:[he&&Be.jsx(El,{"data-type":"inside",ref:K,onFocus:Q=>{if(u){const G=R();ir(i[0]==="reference"?G[0]:G[G.length-1])}else if(N!=null&&N.preserveTabOrder&&N.portalNode)if(E.current=!1,si(Q,N.portalNode)){const G=tf(b);G?.focus()}else{var ne;(ne=N.beforeOutsideRef.current)==null||ne.focus()}}}),!M&&le("start"),n,le("end"),he&&Be.jsx(El,{"data-type":"inside",ref:te,onFocus:Q=>{if(u)ir(R()[0]);else if(N!=null&&N.preserveTabOrder&&N.portalNode)if(m&&(E.current=!0),si(Q,N.portalNode)){const G=nf(b);G?.focus()}else{var ne;(ne=N.afterOutsideRef.current)==null||ne.focus()}}})]})}let Hi=0;const Fc="--floating-ui-scrollbar-width";function Jp(){const e=ea(),t=/iP(hone|ad|od)|iOS/.test(e)||e==="MacIntel"&&navigator.maxTouchPoints>1,n=document.body.style,i=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",l=window.innerWidth-document.documentElement.clientWidth,s=n.left?parseFloat(n.left):window.scrollX,a=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(Fc,l+"px"),l&&(n[i]=l+"px"),t){var c,u;const f=((c=window.visualViewport)==null?void 0:c.offsetLeft)||0,m=((u=window.visualViewport)==null?void 0:u.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(a-Math.floor(m))+"px",left:-(s-Math.floor(f))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[i]:""}),n.removeProperty(Fc),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(s,a))}}let Yc=()=>{};const eg=x.forwardRef(function(t,n){const{lockScroll:r=!1,...i}=t;return Ne(()=>{if(r)return Hi++,Hi===1&&(Yc=Jp()),()=>{Hi--,Hi===0&&Yc()}},[r]),Be.jsx("div",{ref:n,...i,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}})});function jc(e){return Fe(e.target)&&e.target.tagName==="BUTTON"}function tg(e){return Fe(e.target)&&e.target.tagName==="A"}function Wc(e){return ta(e)}function fa(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:l}}=e,{enabled:s=!0,event:a="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:f=!0,stickIfOpen:m=!0}=t,d=x.useRef(),h=x.useRef(!1),p=x.useMemo(()=>({onPointerDown(g){d.current=g.pointerType},onMouseDown(g){const v=d.current;g.button===0&&a!=="click"&&(mi(v,!0)&&u||(n&&c&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){const v=d.current;if(a==="mousedown"&&d.current){d.current=void 0;return}mi(v,!0)&&u||(n&&c&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){d.current=void 0,!(g.defaultPrevented||!f||jc(g))&&(g.key===" "&&!Wc(l)&&(g.preventDefault(),h.current=!0),!tg(g)&&g.key==="Enter"&&r(!(n&&c),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!f||jc(g)||Wc(l)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&c),g.nativeEvent,"click"))}}),[i,l,a,u,f,r,n,m,c]);return x.useMemo(()=>s?{reference:p}:{},[s,p])}const ng={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},rg={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Vc=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Xl(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:l}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:f=!1,referencePressEvent:m="pointerdown",ancestorScroll:d=!1,bubbles:h,capture:p}=t,g=Ci(),v=Ge(typeof c=="function"?c:()=>!1),_=typeof c=="function"?v:c,b=x.useRef(!1),{escapeKey:w,outsidePress:y}=Vc(h),{escapeKey:O,outsidePress:T}=Vc(p),M=x.useRef(!1),z=Ge(S=>{var N;if(!n||!s||!a||S.key!=="Escape"||M.current)return;const q=(N=l.current.floatingContext)==null?void 0:N.nodeId,L=g?cr(g.nodesRef.current,q):[];if(!w&&(S.stopPropagation(),L.length>0)){let E=!0;if(L.forEach(F=>{var X;if((X=F.context)!=null&&X.open&&!F.context.dataRef.current.__escapeKeyBubbles){E=!1;return}}),!E)return}r(!1,Fh(S)?S.nativeEvent:S,"escape-key")}),P=Ge(S=>{var N;const q=()=>{var L;z(S),(L=vn(S))==null||L.removeEventListener("keydown",q)};(N=vn(S))==null||N.addEventListener("keydown",q)}),D=Ge(S=>{var N;const q=l.current.insideReactTree;l.current.insideReactTree=!1;const L=b.current;if(b.current=!1,u==="click"&&L||q||typeof _=="function"&&!_(S))return;const E=vn(S),F="["+mr("inert")+"]",X=qe(i.floating).querySelectorAll(F);let B=Re(E)?E:null;for(;B&&!xn(B);){const R=On(B);if(xn(R)||!Re(R))break;B=R}if(X.length&&Re(E)&&!zh(E)&&!Ue(E,i.floating)&&Array.from(X).every(R=>!Ue(B,R)))return;if(Fe(E)&&j){const R=xn(E),Y=wt(E),H=/auto|scroll/,K=R||H.test(Y.overflowX),te=R||H.test(Y.overflowY),le=K&&E.clientWidth>0&&E.scrollWidth>E.clientWidth,he=te&&E.clientHeight>0&&E.scrollHeight>E.clientHeight,Q=Y.direction==="rtl",ne=he&&(Q?S.offsetX<=E.offsetWidth-E.clientWidth:S.offsetX>E.clientWidth),G=le&&S.offsetY>E.clientHeight;if(ne||G)return}const C=(N=l.current.floatingContext)==null?void 0:N.nodeId,k=g&&cr(g.nodesRef.current,C).some(R=>{var Y;return Cs(S,(Y=R.context)==null?void 0:Y.elements.floating)});if(Cs(S,i.floating)||Cs(S,i.domReference)||k)return;const $=g?cr(g.nodesRef.current,C):[];if($.length>0){let R=!0;if($.forEach(Y=>{var H;if((H=Y.context)!=null&&H.open&&!Y.context.dataRef.current.__outsidePressBubbles){R=!1;return}}),!R)return}r(!1,S,"outside-press")}),I=Ge(S=>{var N;const q=()=>{var L;D(S),(L=vn(S))==null||L.removeEventListener(u,q)};(N=vn(S))==null||N.addEventListener(u,q)});x.useEffect(()=>{if(!n||!s)return;l.current.__escapeKeyBubbles=w,l.current.__outsidePressBubbles=y;let S=-1;function N(X){r(!1,X,"ancestor-scroll")}function q(){window.clearTimeout(S),M.current=!0}function L(){S=window.setTimeout(()=>{M.current=!1},Hl()?5:0)}const E=qe(i.floating);a&&(E.addEventListener("keydown",O?P:z,O),E.addEventListener("compositionstart",q),E.addEventListener("compositionend",L)),_&&E.addEventListener(u,T?I:D,T);let F=[];return d&&(Re(i.domReference)&&(F=Yn(i.domReference)),Re(i.floating)&&(F=F.concat(Yn(i.floating))),!Re(i.reference)&&i.reference&&i.reference.contextElement&&(F=F.concat(Yn(i.reference.contextElement)))),F=F.filter(X=>{var B;return X!==((B=E.defaultView)==null?void 0:B.visualViewport)}),F.forEach(X=>{X.addEventListener("scroll",N,{passive:!0})}),()=>{a&&(E.removeEventListener("keydown",O?P:z,O),E.removeEventListener("compositionstart",q),E.removeEventListener("compositionend",L)),_&&E.removeEventListener(u,T?I:D,T),F.forEach(X=>{X.removeEventListener("scroll",N)}),window.clearTimeout(S)}},[l,i,a,_,u,n,r,d,s,w,y,z,O,P,D,T,I]),x.useEffect(()=>{l.current.insideReactTree=!1},[l,_,u]);const A=x.useMemo(()=>({onKeyDown:z,...f&&{[ng[m]]:S=>{r(!1,S.nativeEvent,"reference-press")},...m!=="click"&&{onClick(S){r(!1,S.nativeEvent,"reference-press")}}}}),[z,r,f,m]),j=x.useMemo(()=>({onKeyDown:z,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[rg[u]]:()=>{l.current.insideReactTree=!0}}),[z,u,l]);return x.useMemo(()=>s?{reference:A,floating:j}:{},[s,A,j])}function ig(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Ni(),l=x.useRef({}),[s]=x.useState(()=>Yp()),a=Gl()!=null;if(process.env.NODE_ENV!=="production"){const h=r.reference;h&&!Re(h)&&Fp("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=x.useState(r.reference),f=Ge((h,p,g)=>{l.current.openEvent=h?p:void 0,s.emit("openchange",{open:h,event:p,reason:g,nested:a}),n?.(h,p,g)}),m=x.useMemo(()=>({setPositionReference:u}),[]),d=x.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return x.useMemo(()=>({dataRef:l,open:t,onOpenChange:f,elements:d,events:s,floatingId:i,refs:m}),[t,f,d,s,i,m])}function Ql(e){e===void 0&&(e={});const{nodeId:t}=e,n=ig({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[l,s]=x.useState(null),[a,c]=x.useState(null),f=i?.domReference||l,m=x.useRef(null),d=Ci();Ne(()=>{f&&(m.current=f)},[f]);const h=Tp({...e,elements:{...i,...a&&{reference:a}}}),p=x.useCallback(w=>{const y=Re(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),getClientRects:()=>w.getClientRects(),contextElement:w}:w;c(y),h.refs.setReference(y)},[h.refs]),g=x.useCallback(w=>{(Re(w)||w===null)&&(m.current=w,s(w)),(Re(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!Re(w))&&h.refs.setReference(w)},[h.refs]),v=x.useMemo(()=>({...h.refs,setReference:g,setPositionReference:p,domReference:m}),[h.refs,g,p]),_=x.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),b=x.useMemo(()=>({...h,...r,refs:v,elements:_,nodeId:t}),[h,v,_,t,r]);return Ne(()=>{r.dataRef.current.floatingContext=b;const w=d?.nodesRef.current.find(y=>y.id===t);w&&(w.context=b)}),x.useMemo(()=>({...h,context:b,refs:v,elements:_}),[h,v,_,b])}function Fs(){return Ch()&&Zu()}function lg(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:l,elements:s}=e,{enabled:a=!0,visibleOnly:c=!0}=t,u=x.useRef(!1),f=x.useRef(-1),m=x.useRef(!0);x.useEffect(()=>{if(!a)return;const h=ct(s.domReference);function p(){!n&&Fe(s.domReference)&&s.domReference===Xt(qe(s.domReference))&&(u.current=!0)}function g(){m.current=!0}function v(){m.current=!1}return h.addEventListener("blur",p),Fs()&&(h.addEventListener("keydown",g,!0),h.addEventListener("pointerdown",v,!0)),()=>{h.removeEventListener("blur",p),Fs()&&(h.removeEventListener("keydown",g,!0),h.removeEventListener("pointerdown",v,!0))}},[s.domReference,n,a]),x.useEffect(()=>{if(!a)return;function h(p){let{reason:g}=p;(g==="reference-press"||g==="escape-key")&&(u.current=!0)}return i.on("openchange",h),()=>{i.off("openchange",h)}},[i,a]),x.useEffect(()=>()=>{gt(f)},[]);const d=x.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(h){if(u.current)return;const p=vn(h.nativeEvent);if(c&&Re(p)){if(Fs()&&!h.relatedTarget){if(!m.current&&!ta(p))return}else if(!Ah(p))return}r(!0,h.nativeEvent,"focus")},onBlur(h){u.current=!1;const p=h.relatedTarget,g=h.nativeEvent,v=Re(p)&&p.hasAttribute(mr("focus-guard"))&&p.getAttribute("data-type")==="outside";f.current=window.setTimeout(()=>{var _;const b=Xt(s.domReference?s.domReference.ownerDocument:document);!p&&b===s.domReference||Ue((_=l.current.floatingContext)==null?void 0:_.refs.floating.current,b)||Ue(s.domReference,b)||v||r(!1,g,"focus")})}}),[l,s.domReference,r,c]);return x.useMemo(()=>a?{reference:d}:{},[a,d])}function Ys(e,t,n){const r=new Map,i=n==="item";let l=e;if(i&&e){const{[Oc]:s,[Mc]:a,...c}=e;l=c}return{...n==="floating"&&{tabIndex:-1,[Pp]:""},...l,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(c=>{let[u,f]=c;if(!(i&&[Oc,Mc].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var m;(m=r.get(u))==null||m.push(f),s[u]=function(){for(var d,h=arguments.length,p=new Array(h),g=0;g<h;g++)p[g]=arguments[g];return(d=r.get(u))==null?void 0:d.map(v=>v(...p)).find(v=>v!==void 0)}}}else s[u]=f}),s),{})}}function Jl(e){e===void 0&&(e=[]);const t=e.map(a=>a?.reference),n=e.map(a=>a?.floating),r=e.map(a=>a?.item),i=x.useCallback(a=>Ys(a,e,"reference"),t),l=x.useCallback(a=>Ys(a,e,"floating"),n),s=x.useCallback(a=>Ys(a,e,"item"),r);return x.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:s}),[i,l,s])}const sg="Escape";function es(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Ui(e,t){return es(t,e===mf||e===Bl,e===Ri||e===Ti)}function js(e,t,n){return es(t,e===Bl,n?e===Ri:e===Ti)||e==="Enter"||e===" "||e===""}function Hc(e,t,n){return es(t,n?e===Ri:e===Ti,e===Bl)}function Uc(e,t,n,r){const i=n?e===Ti:e===Ri,l=e===mf;return t==="both"||t==="horizontal"&&r&&r>1?e===sg:es(t,i,l)}function og(e,t){const{open:n,onOpenChange:r,elements:i,floatingId:l}=e,{listRef:s,activeIndex:a,onNavigate:c=()=>{},enabled:u=!0,selectedIndex:f=null,allowEscape:m=!1,loop:d=!1,nested:h=!1,rtl:p=!1,virtual:g=!1,focusItemOnOpen:v="auto",focusItemOnHover:_=!0,openOnArrowKeyDown:b=!0,disabledIndices:w=void 0,orientation:y="vertical",parentOrientation:O,cols:T=1,scrollItemIntoView:M=!0,virtualItemRef:z,itemSizes:P,dense:D=!1}=t;process.env.NODE_ENV!=="production"&&(m&&(d||sl("`useListNavigation` looping must be enabled to allow escaping."),g||sl("`useListNavigation` must be virtual to allow escaping.")),y==="vertical"&&T>1&&sl("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".'));const I=wl(i.floating),A=et(I),j=Gl(),S=Ci();Ne(()=>{e.dataRef.current.orientation=y},[e,y]);const N=Ge(()=>{c(E.current===-1?null:E.current)}),q=vo(i.domReference),L=x.useRef(v),E=x.useRef(f??-1),F=x.useRef(null),X=x.useRef(!0),B=x.useRef(N),C=x.useRef(!!i.floating),k=x.useRef(n),$=x.useRef(!1),R=x.useRef(!1),Y=et(w),H=et(n),K=et(M),te=et(f),[le,he]=x.useState(),[Q,ne]=x.useState(),G=Ge(()=>{function U(be){if(g){var Se;(Se=be.id)!=null&&Se.endsWith("-fui-option")&&(be.id=l+"-"+Math.random().toString(16).slice(2,10)),he(be.id),S?.events.emit("virtualfocus",be),z&&(z.current=be)}else ir(be,{sync:$.current,preventScroll:!0})}const J=s.current[E.current],Z=R.current;J&&U(J),($.current?be=>be():requestAnimationFrame)(()=>{const be=s.current[E.current]||J;if(!be)return;J||U(be);const Se=K.current;Se&&me&&(Z||!X.current)&&(be.scrollIntoView==null||be.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})});Ne(()=>{u&&(n&&i.floating?L.current&&f!=null&&(R.current=!0,E.current=f,N()):C.current&&(E.current=-1,B.current()))},[u,n,i.floating,f,N]),Ne(()=>{if(u&&n&&i.floating)if(a==null){if($.current=!1,te.current!=null)return;if(C.current&&(E.current=-1,G()),(!k.current||!C.current)&&L.current&&(F.current!=null||L.current===!0&&F.current==null)){let U=0;const J=()=>{s.current[0]==null?(U<2&&(U?requestAnimationFrame:queueMicrotask)(J),U++):(E.current=F.current==null||js(F.current,y,p)||h?$s(s,Y.current):gc(s,Y.current),F.current=null,N())};J()}}else li(s,a)||(E.current=a,G(),R.current=!1)},[u,n,i.floating,a,te,h,s,y,p,N,G,Y]),Ne(()=>{var U;if(!u||i.floating||!S||g||!C.current)return;const J=S.nodesRef.current,Z=(U=J.find(Se=>Se.id===j))==null||(U=U.context)==null?void 0:U.elements.floating,pe=Xt(qe(i.floating)),be=J.some(Se=>Se.context&&Ue(Se.context.elements.floating,pe));Z&&!be&&X.current&&Z.focus({preventScroll:!0})},[u,i.floating,S,j,g]),Ne(()=>{if(!u||!S||!g||j)return;function U(J){ne(J.id),z&&(z.current=J)}return S.events.on("virtualfocus",U),()=>{S.events.off("virtualfocus",U)}},[u,S,g,j,z]),Ne(()=>{B.current=N,k.current=n,C.current=!!i.floating}),Ne(()=>{n||(F.current=null,L.current=v)},[n,v]);const oe=a!=null,me=x.useMemo(()=>{function U(Z){if(!H.current)return;const pe=s.current.indexOf(Z);pe!==-1&&E.current!==pe&&(E.current=pe,N())}return{onFocus(Z){let{currentTarget:pe}=Z;$.current=!0,U(pe)},onClick:Z=>{let{currentTarget:pe}=Z;return pe.focus({preventScroll:!0})},onMouseMove(Z){let{currentTarget:pe}=Z;$.current=!0,R.current=!1,_&&U(pe)},onPointerLeave(Z){let{pointerType:pe}=Z;if(!(!X.current||pe==="touch")&&($.current=!0,!!_&&(E.current=-1,N(),!g))){var be;(be=A.current)==null||be.focus({preventScroll:!0})}}}},[H,A,_,s,N,g]),ie=x.useCallback(()=>{var U;return O??(S==null||(U=S.nodesRef.current.find(J=>J.id===j))==null||(U=U.context)==null||(U=U.dataRef)==null?void 0:U.current.orientation)},[j,S,O]),ge=Ge(U=>{if(X.current=!1,$.current=!0,U.which===229||!H.current&&U.currentTarget===A.current)return;if(h&&Uc(U.key,y,p,T)){Ui(U.key,ie())||lt(U),r(!1,U.nativeEvent,"list-navigation"),Fe(i.domReference)&&(g?S?.events.emit("virtualfocus",i.domReference):i.domReference.focus());return}const J=E.current,Z=$s(s,w),pe=gc(s,w);if(q||(U.key==="Home"&&(lt(U),E.current=Z,N()),U.key==="End"&&(lt(U),E.current=pe,N())),T>1){const be=P||Array.from({length:s.current.length},()=>({width:1,height:1})),Se=qh(be,T,D),ut=Se.findIndex(Ie=>Ie!=null&&!il(s,Ie,w)),kt=Se.reduce((Ie,Ke,St)=>Ke!=null&&!il(s,Ke,w)?St:Ie,-1),nt=Se[Uh({current:Se.map(Ie=>Ie!=null?s.current[Ie]:null)},{event:U,orientation:y,loop:d,rtl:p,cols:T,disabledIndices:Gh([...(typeof w!="function"?w:null)||s.current.map((Ie,Ke)=>il(s,Ke,w)?Ke:void 0),void 0],Se),minIndex:ut,maxIndex:kt,prevIndex:Bh(E.current>pe?Z:E.current,be,Se,T,U.key===Bl?"bl":U.key===(p?Ri:Ti)?"tr":"tl"),stopEvent:!0})];if(nt!=null&&(E.current=nt,N()),y==="both")return}if(Ui(U.key,y)){if(lt(U),n&&!g&&Xt(U.currentTarget.ownerDocument)===U.currentTarget){E.current=js(U.key,y,p)?Z:pe,N();return}js(U.key,y,p)?d?E.current=J>=pe?m&&J!==s.current.length?-1:Z:Je(s,{startingIndex:J,disabledIndices:w}):E.current=Math.min(pe,Je(s,{startingIndex:J,disabledIndices:w})):d?E.current=J<=Z?m&&J!==-1?s.current.length:pe:Je(s,{startingIndex:J,decrement:!0,disabledIndices:w}):E.current=Math.max(Z,Je(s,{startingIndex:J,decrement:!0,disabledIndices:w})),li(s,E.current)&&(E.current=-1),N()}}),ce=x.useMemo(()=>g&&n&&oe&&{"aria-activedescendant":Q||le},[g,n,oe,Q,le]),fe=x.useMemo(()=>({"aria-orientation":y==="both"?void 0:y,...q?{}:ce,onKeyDown:ge,onPointerMove(){X.current=!0}}),[ce,ge,y,q]),ve=x.useMemo(()=>{function U(Z){v==="auto"&&Qu(Z.nativeEvent)&&(L.current=!0)}function J(Z){L.current=v,v==="auto"&&Ju(Z.nativeEvent)&&(L.current=!0)}return{...ce,onKeyDown(Z){X.current=!1;const pe=Z.key.startsWith("Arrow"),be=["Home","End"].includes(Z.key),Se=pe||be,ut=Hc(Z.key,y,p),kt=Uc(Z.key,y,p,T),nt=Hc(Z.key,ie(),p),Ie=Ui(Z.key,y),Ke=(h?nt:Ie)||Z.key==="Enter"||Z.key.trim()==="";if(g&&n){const Ut=S?.nodesRef.current.find(Ot=>Ot.parentId==null),ze=S&&Ut?Lh(S.nodesRef.current,Ut.id):null;if(Se&&ze&&z){const Ot=new KeyboardEvent("keydown",{key:Z.key,bubbles:!0});if(ut||kt){var St,an;const qt=((St=ze.context)==null?void 0:St.elements.domReference)===Z.currentTarget,Ct=kt&&!qt?(an=ze.context)==null?void 0:an.elements.domReference:ut?s.current.find(ft=>ft?.id===le):null;Ct&&(lt(Z),Ct.dispatchEvent(Ot),ne(void 0))}if((Ie||be)&&ze.context&&ze.context.open&&ze.parentId&&Z.currentTarget!==ze.context.elements.domReference){var Nn;lt(Z),(Nn=ze.context.elements.domReference)==null||Nn.dispatchEvent(Ot);return}}return ge(Z)}if(!(!n&&!b&&pe)){if(Ke){const Ut=Ui(Z.key,ie());F.current=h&&Ut?null:Z.key}if(h){nt&&(lt(Z),n?(E.current=$s(s,Y.current),N()):r(!0,Z.nativeEvent,"list-navigation"));return}Ie&&(f!=null&&(E.current=f),lt(Z),!n&&b?r(!0,Z.nativeEvent,"list-navigation"):ge(Z),n&&N())}},onFocus(){n&&!g&&(E.current=-1,N())},onPointerDown:J,onPointerEnter:J,onMouseDown:U,onClick:U}},[le,ce,T,ge,Y,v,s,h,N,r,n,b,y,ie,p,f,S,g,z]);return x.useMemo(()=>u?{reference:ve,floating:fe,item:me}:{},[u,ve,fe,me])}const ag=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ts(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:l,floatingId:s}=e,{enabled:a=!0,role:c="dialog"}=t,u=Ni(),f=((n=l.domReference)==null?void 0:n.id)||u,m=x.useMemo(()=>{var b;return((b=wl(l.floating))==null?void 0:b.id)||s},[l.floating,s]),d=(r=ag.get(c))!=null?r:c,p=Gl()!=null,g=x.useMemo(()=>d==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":d==="alertdialog"?"dialog":d,"aria-controls":i?m:void 0,...d==="listbox"&&{role:"combobox"},...d==="menu"&&{id:f},...d==="menu"&&p&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[d,m,p,i,f,c]),v=x.useMemo(()=>{const b={id:m,...d&&{role:d}};return d==="tooltip"||c==="label"?b:{...b,...d==="menu"&&{"aria-labelledby":f}}},[d,m,f,c]),_=x.useCallback(b=>{let{active:w,selected:y}=b;const O={role:"option",...w&&{id:m+"-fui-option"}};switch(c){case"select":case"combobox":return{...O,"aria-selected":y}}return{}},[m,c]);return x.useMemo(()=>a?{reference:g,floating:v,item:_}:{},[a,g,v,_])}const qc=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function vr(e,t){return typeof e=="function"?e(t):e}function cg(e,t){const[n,r]=x.useState(e);return e&&!n&&r(!0),x.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function ug(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,s=(typeof i=="number"?i:i.close)||0,[a,c]=x.useState("unmounted"),u=cg(n,s);return!u&&a==="close"&&c("unmounted"),Ne(()=>{if(r){if(n){c("initial");const f=requestAnimationFrame(()=>{na.flushSync(()=>{c("open")})});return()=>{cancelAnimationFrame(f)}}c("close")}},[n,r]),{isMounted:u,status:a}}function da(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:l,duration:s=250}=t,a=e.placement,c=a.split("-")[0],u=x.useMemo(()=>({side:c,placement:a}),[c,a]),f=typeof s=="number",m=(f?s:s.open)||0,d=(f?s:s.close)||0,[h,p]=x.useState(()=>({...vr(l,u),...vr(n,u)})),{isMounted:g,status:v}=ug(e,{duration:s}),_=et(n),b=et(r),w=et(i),y=et(l);return Ne(()=>{const O=vr(_.current,u),T=vr(w.current,u),M=vr(y.current,u),z=vr(b.current,u)||Object.keys(O).reduce((P,D)=>(P[D]="",P),{});if(v==="initial"&&p(P=>({transitionProperty:P.transitionProperty,...M,...O})),v==="open"&&p({transitionProperty:Object.keys(z).map(qc).join(","),transitionDuration:m+"ms",...M,...z}),v==="close"){const P=T||O;p({transitionProperty:Object.keys(P).map(qc).join(","),transitionDuration:d+"ms",...M,...P})}},[d,w,_,b,y,m,v,u]),{isMounted:g,styles:h}}const fg="_wrapper_rf188_1",dg="_label_rf188_7",mg="_content_rf188_14",hg="_caption_rf188_20",ns={wrapper:fg,label:dg,content:mg,caption:hg},pg=e=>o.createElement("div",{className:ns.label},e.children),gg=e=>o.createElement("div",{className:ns.content},e.children),vg=e=>o.createElement("div",{className:ns.caption},e.children),yg=e=>o.createElement("div",{className:ns.wrapper},o.Children.map(e.children,t=>o.isValidElement(t)?t:null)),lr=Object.assign(yg,{Label:pg,Content:gg,Caption:vg});/*!
25
- * OverlayScrollbars
26
- * Version: 2.11.5
27
- *
28
- * Copyright (c) Rene Haas | KingSora.
29
- * https://github.com/KingSora
30
- *
31
- * Released under the MIT license.
32
- */const vt=(e,t)=>{const{o:n,i:r,u:i}=e;let l=n,s;const a=(f,m)=>{const d=l,h=f,p=m||(r?!r(d,h):d!==h);return(p||i)&&(l=h,s=d),[l,p,s]};return[t?f=>a(t(l,s),f):a,f=>[l,!!f,s]]},_g=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,at=_g?window:{},vf=Math.max,bg=Math.min,yo=Math.round,kl=Math.abs,Bc=Math.sign,yf=at.cancelAnimationFrame,ma=at.requestAnimationFrame,ha=at.setTimeout,_f=at.clearTimeout,rs=e=>typeof at[e]<"u"?at[e]:void 0,wg=rs("MutationObserver"),Gc=rs("IntersectionObserver"),Er=rs("ResizeObserver"),ii=rs("ScrollTimeline"),pa=e=>e===void 0,is=e=>e===null,En=e=>typeof e=="number",$i=e=>typeof e=="string",ls=e=>typeof e=="boolean",Vt=e=>typeof e=="function",Ft=e=>Array.isArray(e),Sl=e=>typeof e=="object"&&!Ft(e)&&!is(e),ga=e=>{const t=!!e&&e.length,n=En(t)&&t>-1&&t%1==0;return Ft(e)||!Vt(e)&&n?t>0&&Sl(e)?t-1 in e:!0:!1},Ol=e=>!!e&&e.constructor===Object,Ml=e=>e instanceof HTMLElement,ss=e=>e instanceof Element;function Oe(e,t){if(ga(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&Oe(Object.keys(e),n=>t(e[n],n,e));return e}const bf=(e,t)=>e.indexOf(t)>=0,pi=(e,t)=>e.concat(t),Ae=(e,t,n)=>(!$i(t)&&ga(t)?Array.prototype.push.apply(e,t):e.push(t),e),qn=e=>Array.from(e||[]),va=e=>Ft(e)?e:!$i(e)&&ga(e)?qn(e):[e],Dl=e=>!!e&&!e.length,_o=e=>qn(new Set(e)),bt=(e,t,n)=>{Oe(e,i=>i?i.apply(void 0,t||[]):!0),n||(e.length=0)},wf="paddingTop",xf="paddingRight",Ef="paddingLeft",kf="paddingBottom",Sf="marginLeft",Of="marginRight",Mf="marginBottom",ya="overflowX",_a="overflowY",os="width",as="height",yn="visible",zt="hidden",Ar="scroll",xg=e=>{const t=String(e||"");return t?t[0].toUpperCase()+t.slice(1):""},cs=(e,t,n,r)=>{if(e&&t){let i=!0;return Oe(n,l=>{const s=e[l],a=t[l];s!==a&&(i=!1)}),i}return!1},Df=(e,t)=>cs(e,t,["w","h"]),ol=(e,t)=>cs(e,t,["x","y"]),Eg=(e,t)=>cs(e,t,["t","r","b","l"]),ae=(e,...t)=>e.bind(0,...t),kr=e=>{let t;const n=e?ha:ma,r=e?_f:yf;return[i=>{r(t),t=n(()=>i(),Vt(e)?e():e)},()=>r(t)]},Kc=e=>{const t=Vt(e)?e():e;if(En(t)){const n=t?ha:ma,r=t?_f:yf;return i=>{const l=n(()=>i(),t);return()=>{r(l)}}}return t&&t._},Rl=(e,t)=>{const{p:n,v:r,S:i,m:l}=t||{};let s,a,c,u,f;const m=function(v){a&&a(),s&&s(),f=a=s=c=void 0,e.apply(this,v)},d=g=>l&&c?l(c,g):g,h=()=>{a&&m(d(u)||u)},p=function(){const v=qn(arguments),_=Kc(n);if(_){const b=Kc(r),y=d(v)||v,O=m.bind(0,y);a&&a(),i&&!f?(O(),f=!0,a=_(()=>f=void 0)):(a=_(O),b&&!s&&(s=b(h))),c=u=y}else m(v)};return p.O=h,p},Rf=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Yt=e=>e?Object.keys(e):[],we=(e,t,n,r,i,l,s)=>{const a=[t,n,r,i,l,s];return(typeof e!="object"||is(e))&&!Vt(e)&&(e={}),Oe(a,c=>{Oe(c,(u,f)=>{const m=c[f];if(e===m)return!0;const d=Ft(m);if(m&&Ol(m)){const h=e[f];let p=h;d&&!Ft(h)?p=[]:!d&&!Ol(h)&&(p={}),e[f]=we(p,m)}else e[f]=d?m.slice():m})}),e},Tf=(e,t)=>Oe(we({},e),(n,r,i)=>{n===void 0?delete i[r]:n&&Ol(n)&&(i[r]=Tf(n))}),ba=e=>!Yt(e).length,gi=()=>{},Nf=(e,t,n)=>vf(e,bg(t,n)),ur=e=>_o((Ft(e)?e:(e||"").split(" ")).filter(t=>t)),wa=(e,t)=>e&&e.getAttribute(t),Zc=(e,t)=>e&&e.hasAttribute(t),hn=(e,t,n)=>{Oe(ur(t),r=>{e&&e.setAttribute(r,String(n||""))})},Zt=(e,t)=>{Oe(ur(t),n=>e&&e.removeAttribute(n))},us=(e,t)=>{const n=ur(wa(e,t)),r=ae(hn,e,t),i=(l,s)=>{const a=new Set(n);return Oe(ur(l),c=>{a[s](c)}),qn(a).join(" ")};return{C:l=>r(i(l,"delete")),$:l=>r(i(l,"add")),H:l=>{const s=ur(l);return s.reduce((a,c)=>a&&n.includes(c),s.length>0)}}},Cf=(e,t,n)=>(us(e,t).C(n),ae(xa,e,t,n)),xa=(e,t,n)=>(us(e,t).$(n),ae(Cf,e,t,n)),Tl=(e,t,n,r)=>(r?xa:Cf)(e,t,n),Ea=(e,t,n)=>us(e,t).H(n),$f=e=>us(e,"class"),Pf=(e,t)=>{$f(e).C(t)},ka=(e,t)=>($f(e).$(t),ae(Pf,e,t)),If=(e,t)=>{const n=t?ss(t)&&t:document;return n?qn(n.querySelectorAll(e)):[]},kg=(e,t)=>{const n=t?ss(t)&&t:document;return n&&n.querySelector(e)},bo=(e,t)=>ss(e)&&e.matches(t),zf=e=>bo(e,"body"),wo=e=>e?qn(e.childNodes):[],vi=e=>e&&e.parentElement,Sr=(e,t)=>ss(e)&&e.closest(t),xo=e=>document.activeElement,Sg=(e,t,n)=>{const r=Sr(e,t),i=e&&kg(n,r),l=Sr(i,t)===r;return r&&i?r===e||i===e||l&&Sr(Sr(e,n),t)!==r:!1},Lr=e=>{Oe(va(e),t=>{const n=vi(t);t&&n&&n.removeChild(t)})},ot=(e,t)=>ae(Lr,e&&t&&Oe(va(t),n=>{n&&e.appendChild(n)}));let Af;const Og=()=>Af,Mg=e=>{Af=e},Tr=e=>{const t=document.createElement("div");return hn(t,"class",e),t},Lf=e=>{const t=Tr(),n=Og(),r=e.trim();return t.innerHTML=n?n.createHTML(r):r,Oe(wo(t),i=>Lr(i))},Xc=(e,t)=>e.getPropertyValue(t)||e[t]||"",Ff=e=>{const t=e||0;return isFinite(t)?t:0},qi=e=>Ff(parseFloat(e||"")),Eo=e=>Math.round(e*1e4)/1e4,Yf=e=>`${Eo(Ff(e))}px`;function yi(e,t){e&&t&&Oe(t,(n,r)=>{try{const i=e.style,l=is(n)||ls(n)?"":En(n)?Yf(n):n;r.indexOf("--")===0?i.setProperty(r,l):i[r]=l}catch{}})}function tn(e,t,n){const r=$i(t);let i=r?"":{};if(e){const l=at.getComputedStyle(e,n)||e.style;i=r?Xc(l,t):qn(t).reduce((s,a)=>(s[a]=Xc(l,a),s),i)}return i}const Qc=(e,t,n)=>{const r=t?`${t}-`:"",i=n?`-${n}`:"",l=`${r}top${i}`,s=`${r}right${i}`,a=`${r}bottom${i}`,c=`${r}left${i}`,u=tn(e,[l,s,a,c]);return{t:qi(u[l]),r:qi(u[s]),b:qi(u[a]),l:qi(u[c])}},Ws=(e,t)=>`translate${Sl(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`}`,Dg=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),Rg={w:0,h:0},fs=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:Rg,Tg=e=>fs("inner",e||at),Nr=ae(fs,"offset"),jf=ae(fs,"client"),Nl=ae(fs,"scroll"),Sa=e=>{const t=parseFloat(tn(e,os))||0,n=parseFloat(tn(e,as))||0;return{w:t-yo(t),h:n-yo(n)}},Vs=e=>e.getBoundingClientRect(),Ng=e=>!!e&&Dg(e),ko=e=>!!(e&&(e[as]||e[os])),Wf=(e,t)=>{const n=ko(e);return!ko(t)&&n},Jc=(e,t,n,r)=>{Oe(ur(t),i=>{e&&e.removeEventListener(i,n,r)})},Te=(e,t,n,r)=>{var i;const l=(i=r&&r.T)!=null?i:!0,s=r&&r.I||!1,a=r&&r.A||!1,c={passive:l,capture:s};return ae(bt,ur(t).map(u=>{const f=a?m=>{Jc(e,u,f,s),n&&n(m)}:n;return e&&e.addEventListener(u,f,c),ae(Jc,e,u,f,s)}))},Vf=e=>e.stopPropagation(),So=e=>e.preventDefault(),Hf=e=>Vf(e)||So(e),Jt=(e,t)=>{const{x:n,y:r}=En(t)?{x:t,y:t}:t||{};En(n)&&(e.scrollLeft=n),En(r)&&(e.scrollTop=r)},_t=e=>({x:e.scrollLeft,y:e.scrollTop}),Uf=()=>({D:{x:0,y:0},M:{x:0,y:0}}),Cg=(e,t)=>{const{D:n,M:r}=e,{w:i,h:l}=t,s=(m,d,h)=>{let p=Bc(m)*h,g=Bc(d)*h;if(p===g){const v=kl(m),_=kl(d);g=v>_?0:g,p=v<_?0:p}return p=p===g?0:p,[p+0,g+0]},[a,c]=s(n.x,r.x,i),[u,f]=s(n.y,r.y,l);return{D:{x:a,y:u},M:{x:c,y:f}}},Hs=({D:e,M:t})=>{const n=(r,i)=>r===0&&r<=i;return{x:n(e.x,t.x),y:n(e.y,t.y)}},eu=({D:e,M:t},n)=>{const r=(i,l,s)=>Nf(0,1,(i-s)/(i-l)||0);return{x:r(e.x,t.x,n.x),y:r(e.y,t.y,n.y)}},Oo=e=>{e&&e.focus&&e.focus({preventScroll:!0})},tu=(e,t)=>{Oe(va(t),e)},Mo=e=>{const t=new Map,n=(l,s)=>{if(l){const a=t.get(l);tu(c=>{a&&a[c?"delete":"clear"](c)},s)}else t.forEach(a=>{a.clear()}),t.clear()},r=(l,s)=>{if($i(l)){const u=t.get(l)||new Set;return t.set(l,u),tu(f=>{Vt(f)&&u.add(f)},s),ae(n,l,s)}ls(s)&&s&&n();const a=Yt(l),c=[];return Oe(a,u=>{const f=l[u];f&&Ae(c,r(u,f))}),ae(bt,c)},i=(l,s)=>{Oe(qn(t.get(l)),a=>{s&&!Dl(s)?a.apply(0,s):a()})};return r(e||{}),[r,n,i]},qf={},Bf={},$g=e=>{Oe(e,t=>Oe(t,(n,r)=>{qf[r]=t[r]}))},Gf=(e,t,n)=>Yt(e).map(r=>{const{static:i,instance:l}=e[r],[s,a,c]=n||[],u=n?l:i;if(u){const f=n?u(s,a,t):u(t);return(c||Bf)[r]=f}}),Pi=e=>Bf[e],Pg="__osOptionsValidationPlugin",jr="data-overlayscrollbars",al="os-environment",Bi=`${al}-scrollbar-hidden`,Us=`${jr}-initialize`,cl="noClipping",nu=`${jr}-body`,jn=jr,Ig="host",pn=`${jr}-viewport`,zg=ya,Ag=_a,Lg="arrange",Kf="measuring",Fg="scrolling",Zf="scrollbarHidden",Yg="noContent",Do=`${jr}-padding`,ru=`${jr}-content`,Oa="os-size-observer",jg=`${Oa}-appear`,Wg=`${Oa}-listener`,Vg="os-trinsic-observer",Hg="os-theme-none",xt="os-scrollbar",Ug=`${xt}-rtl`,qg=`${xt}-horizontal`,Bg=`${xt}-vertical`,Xf=`${xt}-track`,Ma=`${xt}-handle`,Gg=`${xt}-visible`,Kg=`${xt}-cornerless`,iu=`${xt}-interaction`,lu=`${xt}-unusable`,Ro=`${xt}-auto-hide`,su=`${Ro}-hidden`,ou=`${xt}-wheel`,Zg=`${Xf}-interactive`,Xg=`${Ma}-interactive`,Qg="__osSizeObserverPlugin",Jg=(e,t)=>{const{k:n}=t,[r,i]=e("showNativeOverlaidScrollbars");return[r&&n.x&&n.y,i]},Or=e=>e.indexOf(yn)===0,ev=e=>e.replace(`${yn}-`,""),To=(e,t)=>{if(e==="auto")return t?Ar:zt;const n=e||zt;return[zt,Ar,yn].includes(n)?n:zt},tv=(e,t)=>{const{overflowX:n,overflowY:r}=tn(e,[ya,_a]);return{x:To(n,t.x),y:To(r,t.y)}},Qf="__osScrollbarsHidingPlugin",nv="__osClickScrollPlugin",au=e=>JSON.stringify(e,(t,n)=>{if(Vt(n))throw 0;return n}),cu=(e,t)=>e?`${t}`.split(".").reduce((n,r)=>n&&Rf(n,r)?n[r]:void 0,e):void 0,rv={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Jf=(e,t)=>{const n={},r=pi(Yt(t),Yt(e));return Oe(r,i=>{const l=e[i],s=t[i];if(Sl(l)&&Sl(s))we(n[i]={},Jf(l,s)),ba(n[i])&&delete n[i];else if(Rf(t,i)&&s!==l){let a=!0;if(Ft(l)||Ft(s))try{au(l)===au(s)&&(a=!1)}catch{}a&&(n[i]=s)}}),n},uu=(e,t,n)=>r=>[cu(e,r),n||cu(t,r)!==void 0];let ed;const iv=()=>ed,lv=e=>{ed=e};let qs;const sv=()=>{const e=(y,O,T)=>{ot(document.body,y),ot(document.body,y);const M=jf(y),z=Nr(y),P=Sa(O);return T&&Lr(y),{x:z.h-M.h+P.h,y:z.w-M.w+P.w}},t=y=>{let O=!1;const T=ka(y,Bi);try{O=tn(y,"scrollbar-width")==="none"||tn(y,"display","::-webkit-scrollbar")==="none"}catch{}return T(),O},n=`.${al}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${al} div{width:200%;height:200%;margin:10px 0}.${Bi}{scrollbar-width:none!important}.${Bi}::-webkit-scrollbar,.${Bi}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,i=Lf(`<div class="${al}"><div></div><style>${n}</style></div>`)[0],l=i.firstChild,s=i.lastChild,a=iv();a&&(s.nonce=a);const[c,,u]=Mo(),[f,m]=vt({o:e(i,l),i:ol},ae(e,i,l,!0)),[d]=m(),h=t(i),p={x:d.x===0,y:d.y===0},g={elements:{host:null,padding:!h,viewport:y=>h&&zf(y)&&y,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},v=we({},rv),_=ae(we,{},v),b=ae(we,{},g),w={P:d,k:p,U:h,J:!!ii,G:ae(c,"r"),K:b,Z:y=>we(g,y)&&b(),tt:_,nt:y=>we(v,y)&&_(),ot:we({},g),st:we({},v)};if(Zt(i,"style"),Lr(i),Te(at,"resize",()=>{u("r",[])}),Vt(at.matchMedia)&&!h&&(!p.x||!p.y)){const y=O=>{const T=at.matchMedia(`(resolution: ${at.devicePixelRatio}dppx)`);Te(T,"change",()=>{O(),y(O)},{A:!0})};y(()=>{const[O,T]=f();we(w.P,O),u("r",[T])})}return w},ln=()=>(qs||(qs=sv()),qs),ov=(e,t,n)=>{let r=!1;const i=n?new WeakMap:!1,l=()=>{r=!0},s=a=>{if(i&&n){const c=n.map(u=>{const[f,m]=u||[];return[m&&f?(a||If)(f,e):[],m]});Oe(c,u=>Oe(u[0],f=>{const m=u[1],d=i.get(f)||[];if(e.contains(f)&&m){const p=Te(f,m,g=>{r?(p(),i.delete(f)):t(g)});i.set(f,Ae(d,p))}else bt(d),i.delete(f)}))}};return s(),[l,s]},fu=(e,t,n,r)=>{let i=!1;const{et:l,ct:s,rt:a,it:c,lt:u,ut:f}=r||{},m=Rl(()=>i&&n(!0),{p:33,v:99}),[d,h]=ov(e,m,a),p=l||[],g=s||[],v=pi(p,g),_=(w,y)=>{if(!Dl(y)){const O=u||gi,T=f||gi,M=[],z=[];let P=!1,D=!1;if(Oe(y,I=>{const{attributeName:A,target:j,type:S,oldValue:N,addedNodes:q,removedNodes:L}=I,E=S==="attributes",F=S==="childList",X=e===j,B=E&&A,C=B&&wa(j,A||""),k=$i(C)?C:null,$=B&&N!==k,R=bf(g,A)&&$;if(t&&(F||!X)){const Y=E&&$,H=Y&&c&&bo(j,c),te=(H?!O(j,A,N,k):!E||Y)&&!T(I,!!H,e,r);Oe(q,le=>Ae(M,le)),Oe(L,le=>Ae(M,le)),D=D||te}!t&&X&&$&&!O(j,A,N,k)&&(Ae(z,A),P=P||R)}),h(I=>_o(M).reduce((A,j)=>(Ae(A,If(I,j)),bo(j,I)?Ae(A,j):A),[])),t)return!w&&D&&n(!1),[!1];if(!Dl(z)||P){const I=[_o(z),P];return w||n.apply(0,I),I}}},b=new wg(ae(_,!1));return[()=>(b.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:t,childList:t,characterData:t}),i=!0,()=>{i&&(d(),b.disconnect(),i=!1)}),()=>{if(i)return m.O(),_(!0,b.takeRecords())}]};let Xn=null;const td=(e,t,n)=>{const{ft:r}=n||{},i=Pi(Qg),[l]=vt({o:!1,u:!0});return()=>{const s=[],c=Lf(`<div class="${Oa}"><div class="${Wg}"></div></div>`)[0],u=c.firstChild,f=m=>{const d=Ft(m)&&!Dl(m);let h=!1,p=!1;if(d){const g=m[0],[v,,_]=l(g.contentRect),b=ko(v);p=Wf(v,_),h=!p&&!b}else p=m===!0;h||t({_t:!0,ft:p})};if(Er){if(!ls(Xn)){const p=new Er(gi);p.observe(e,{get box(){Xn=!0}}),Xn=Xn||!1,p.disconnect()}const m=Rl(f,{p:0,v:0}),d=p=>m(p),h=new Er(d);if(h.observe(Xn?e:u),Ae(s,[()=>{h.disconnect()},!Xn&&ot(e,c)]),Xn){const p=new Er(d);p.observe(e,{box:"border-box"}),Ae(s,()=>p.disconnect())}}else if(i){const[m,d]=i(u,f,r);Ae(s,pi([ka(c,jg),Te(c,"animationstart",m),ot(e,c)],d))}else return gi;return ae(bt,s)}},av=(e,t)=>{let n;const r=c=>c.h===0||c.isIntersecting||c.intersectionRatio>0,i=Tr(Vg),[l]=vt({o:!1}),s=(c,u)=>{if(c){const f=l(r(c)),[,m]=f;return m&&!u&&t(f)&&[f]}},a=(c,u)=>s(u.pop(),c);return[()=>{const c=[];if(Gc)n=new Gc(ae(a,!1),{root:e}),n.observe(i),Ae(c,()=>{n.disconnect()});else{const u=()=>{const f=Nr(i);s(f)};Ae(c,td(i,u)()),u()}return ae(bt,Ae(c,ot(e,i)))},()=>n&&a(!0,n.takeRecords())]},cv=(e,t,n,r)=>{let i,l,s,a,c,u;const f=`[${jn}]`,m=`[${pn}]`,d=["id","class","style","open","wrap","cols","rows"],{dt:h,vt:p,L:g,gt:v,ht:_,V:b,bt:w,wt:y,yt:O,St:T}=e,M=R=>tn(R,"direction")==="rtl",z={Ot:!1,B:M(h)},P=ln(),D=Pi(Qf),[I]=vt({i:Df,o:{w:0,h:0}},()=>{const R=D&&D.R(e,t,z,P,n).Y,H=!(w&&b)&&Ea(p,jn,cl),K=!b&&y(Lg),te=K&&_t(v),le=te&&T(),he=O(Kf,H),Q=K&&R&&R(),ne=Nl(g),G=Sa(g);return Q&&Q(),Jt(v,te),le&&le(),H&&he(),{w:ne.w+G.w,h:ne.h+G.h}}),A=Rl(r,{p:()=>i,v:()=>l,m(R,Y){const[H]=R,[K]=Y;return[pi(Yt(H),Yt(K)).reduce((te,le)=>(te[le]=H[le]||K[le],te),{})]}}),j=R=>{const Y=M(h);we(R,{Ct:u!==Y}),we(z,{B:Y}),u=Y},S=(R,Y)=>{const[H,K]=R,te={$t:K};return we(z,{Ot:H}),Y||r(te),te},N=({_t:R,ft:Y})=>{const K=!(R&&!Y)&&P.U?A:r,te={_t:R||Y,ft:Y};j(te),K(te)},q=(R,Y)=>{const[,H]=I(),K={xt:H};return j(K),H&&!Y&&(R?r:A)(K),K},L=(R,Y,H)=>{const K={Ht:Y};return j(K),Y&&!H&&A(K),K},[E,F]=_?av(p,S):[],X=!b&&td(p,N,{ft:!0}),[B,C]=fu(p,!1,L,{ct:d,et:d}),k=b&&Er&&new Er(R=>{const Y=R[R.length-1].contentRect;N({_t:!0,ft:Wf(Y,c)}),c=Y}),$=Rl(()=>{const[,R]=I();r({xt:R,_t:w})},{p:222,S:!0});return[()=>{k&&k.observe(p);const R=X&&X(),Y=E&&E(),H=B(),K=P.G(te=>{te?A({Et:te}):$()});return()=>{k&&k.disconnect(),R&&R(),Y&&Y(),a&&a(),H(),K()}},({zt:R,Tt:Y,It:H})=>{const K={},[te]=R("update.ignoreMutation"),[le,he]=R("update.attributes"),[Q,ne]=R("update.elementEvents"),[G,oe]=R("update.debounce"),me=ne||he,ie=Y||H,ge=ce=>Vt(te)&&te(ce);if(me){s&&s(),a&&a();const[ce,fe]=fu(_||g,!0,q,{et:pi(d,le||[]),rt:Q,it:f,ut:(ve,U)=>{const{target:J,attributeName:Z}=ve;return(!U&&Z&&!b?Sg(J,f,m):!1)||!!Sr(J,`.${xt}`)||!!ge(ve)}});a=ce(),s=fe}if(oe)if(A.O(),Ft(G)){const ce=G[0],fe=G[1];i=En(ce)&&ce,l=En(fe)&&fe}else En(G)?(i=G,l=!1):(i=!1,l=!1);if(ie){const ce=C(),fe=F&&F(),ve=s&&s();ce&&we(K,L(ce[0],ce[1],ie)),fe&&we(K,S(fe[0],ie)),ve&&we(K,q(ve[0],ie))}return j(K),K},z]},nd=(e,t)=>Vt(t)?t.apply(0,e):t,uv=(e,t,n,r)=>{const i=pa(r)?n:r;return nd(e,i)||t.apply(0,e)},rd=(e,t,n,r)=>{const i=pa(r)?n:r,l=nd(e,i);return!!l&&(Ml(l)?l:t.apply(0,e))},fv=(e,t)=>{const{nativeScrollbarsOverlaid:n,body:r}=t||{},{k:i,U:l,K:s}=ln(),{nativeScrollbarsOverlaid:a,body:c}=s().cancel,u=n??a,f=pa(r)?c:r,m=(i.x||i.y)&&u,d=e&&(is(f)?!l:f);return!!m||!!d},dv=(e,t,n,r)=>{const i="--os-viewport-percent",l="--os-scroll-percent",s="--os-scroll-direction",{K:a}=ln(),{scrollbars:c}=a(),{slot:u}=c,{dt:f,vt:m,L:d,At:h,gt:p,bt:g,V:v}=t,{scrollbars:_}=h?{}:e,{slot:b}=_||{},w=[],y=[],O=[],T=rd([f,m,d],()=>v&&g?f:m,u,b),M=B=>{if(ii){let C=null,k=[];const $=new ii({source:p,axis:B}),R=()=>{C&&C.cancel(),C=null};return{kt:H=>{const{Dt:K}=n,te=Hs(K)[B],le=B==="x",he=[Ws(0,le),Ws(`calc(100cq${le?"w":"h"} + -100%)`,le)],Q=te?he:he.reverse();return k[0]===Q[0]&&k[1]===Q[1]||(R(),k=Q,C=H.Mt.animate({clear:["left"],transform:Q},{timeline:$})),R}}}},z={x:M("x"),y:M("y")},P=()=>{const{Rt:B,Vt:C}=n,k=($,R)=>Nf(0,1,$/($+R)||0);return{x:k(C.x,B.x),y:k(C.y,B.y)}},D=(B,C,k)=>{const $=k?ka:Pf;Oe(B,R=>{$(R.Lt,C)})},I=(B,C)=>{Oe(B,k=>{const[$,R]=C(k);yi($,R)})},A=(B,C,k)=>{const $=ls(k),R=$?k:!0,Y=$?!k:!0;R&&D(y,B,C),Y&&D(O,B,C)},j=()=>{const B=P(),C=k=>$=>[$.Lt,{[i]:Eo(k)+""}];I(y,C(B.x)),I(O,C(B.y))},S=()=>{if(!ii){const{Dt:B}=n,C=eu(B,_t(p)),k=$=>R=>[R.Lt,{[l]:Eo($)+""}];I(y,k(C.x)),I(O,k(C.y))}},N=()=>{const{Dt:B}=n,C=Hs(B),k=$=>R=>[R.Lt,{[s]:$?"0":"1"}];I(y,k(C.x)),I(O,k(C.y)),ii&&(y.forEach(z.x.kt),O.forEach(z.y.kt))},q=()=>{if(v&&!g){const{Rt:B,Dt:C}=n,k=Hs(C),$=eu(C,_t(p)),R=Y=>{const{Lt:H}=Y,K=vi(H)===d&&H,te=(le,he,Q)=>{const ne=he*le;return Yf(Q?ne:-ne)};return[K,K&&{transform:Ws({x:te($.x,B.x,k.x),y:te($.y,B.y,k.y)})}]};I(y,R),I(O,R)}},L=B=>{const C=B?"x":"y",$=Tr(`${xt} ${B?qg:Bg}`),R=Tr(Xf),Y=Tr(Ma),H={Lt:$,Ut:R,Mt:Y},K=z[C];return Ae(B?y:O,H),Ae(w,[ot($,R),ot(R,Y),ae(Lr,$),K&&K.kt(H),r(H,A,B)]),H},E=ae(L,!0),F=ae(L,!1),X=()=>(ot(T,y[0].Lt),ot(T,O[0].Lt),ae(bt,w));return E(),F(),[{Pt:j,Nt:S,qt:N,Bt:q,Ft:A,jt:{Xt:y,Yt:E,Wt:ae(I,y)},Jt:{Xt:O,Yt:F,Wt:ae(I,O)}},X]},mv=(e,t,n,r)=>(i,l,s)=>{const{vt:a,L:c,V:u,gt:f,Gt:m,St:d}=t,{Lt:h,Ut:p,Mt:g}=i,[v,_]=kr(333),[b,w]=kr(444),y=M=>{Vt(f.scrollBy)&&f.scrollBy({behavior:"smooth",left:M.x,top:M.y})},O=()=>{const M="pointerup pointercancel lostpointercapture",z=`client${s?"X":"Y"}`,P=s?os:as,D=s?"left":"top",I=s?"w":"h",A=s?"x":"y",j=(N,q)=>L=>{const{Rt:E}=n,F=Nr(p)[I]-Nr(g)[I],B=q*L/F*E[A];Jt(f,{[A]:N+B})},S=[];return Te(p,"pointerdown",N=>{const q=Sr(N.target,`.${Ma}`)===g,L=q?g:p,E=e.scrollbars,F=E[q?"dragScroll":"clickScroll"],{button:X,isPrimary:B,pointerType:C}=N,{pointers:k}=E;if(X===0&&B&&F&&(k||[]).includes(C)){bt(S),w();const R=!q&&(N.shiftKey||F==="instant"),Y=ae(Vs,g),H=ae(Vs,p),K=(U,J)=>(U||Y())[D]-(J||H())[D],te=yo(Vs(f)[P])/Nr(f)[I]||1,le=j(_t(f)[A],1/te),he=N[z],Q=Y(),ne=H(),G=Q[P],oe=K(Q,ne)+G/2,me=he-ne[D],ie=q?0:me-oe,ge=U=>{bt(ve),L.releasePointerCapture(U.pointerId)},ce=q||R,fe=d(),ve=[Te(m,M,ge),Te(m,"selectstart",U=>So(U),{T:!1}),Te(p,M,ge),ce&&Te(p,"pointermove",U=>le(ie+(U[z]-he))),ce&&(()=>{const U=_t(f);fe();const J=_t(f),Z={x:J.x-U.x,y:J.y-U.y};(kl(Z.x)>3||kl(Z.y)>3)&&(d(),Jt(f,U),y(Z),b(fe))})];if(L.setPointerCapture(N.pointerId),R)le(ie);else if(!q){const U=Pi(nv);if(U){const J=U(le,ie,G,Z=>{Z?fe():Ae(ve,fe)});Ae(ve,J),Ae(S,ae(J,!0))}}}})};let T=!0;return ae(bt,[Te(g,"pointermove pointerleave",r),Te(h,"pointerenter",()=>{l(iu,!0)}),Te(h,"pointerleave pointercancel",()=>{l(iu,!1)}),!u&&Te(h,"mousedown",()=>{const M=xo();(Zc(M,pn)||Zc(M,jn)||M===document.body)&&ha(ae(Oo,c),25)}),Te(h,"wheel",M=>{const{deltaX:z,deltaY:P,deltaMode:D}=M;T&&D===0&&vi(h)===a&&y({x:z,y:P}),T=!1,l(ou,!0),v(()=>{T=!0,l(ou)}),So(M)},{T:!1,I:!0}),Te(h,"pointerdown",()=>{const M=Te(m,"click",P=>{z(),Hf(P)},{A:!0,I:!0,T:!1}),z=Te(m,"pointerup pointercancel",()=>{z(),setTimeout(M,150)},{I:!0,T:!0})},{I:!0,T:!0}),O(),_,w])},hv=(e,t,n,r,i,l)=>{let s,a,c,u,f,m=gi,d=0;const h=["mouse","pen"],p=C=>h.includes(C.pointerType),[g,v]=kr(),[_,b]=kr(100),[w,y]=kr(100),[O,T]=kr(()=>d),[M,z]=dv(e,i,r,mv(t,i,r,C=>p(C)&&E())),{vt:P,Kt:D,bt:I}=i,{Ft:A,Pt:j,Nt:S,qt:N,Bt:q}=M,L=(C,k)=>{if(T(),C)A(su);else{const $=ae(A,su,!0);d>0&&!k?O($):$()}},E=()=>{(c?!s:!u)&&(L(!0),_(()=>{L(!1)}))},F=C=>{A(Ro,C,!0),A(Ro,C,!1)},X=C=>{p(C)&&(s=c,c&&L(!0))},B=[T,b,y,v,()=>m(),Te(P,"pointerover",X,{A:!0}),Te(P,"pointerenter",X),Te(P,"pointerleave",C=>{p(C)&&(s=!1,c&&L(!1))}),Te(P,"pointermove",C=>{p(C)&&a&&E()}),Te(D,"scroll",C=>{g(()=>{S(),E()}),l(C),q()})];return[()=>ae(bt,Ae(B,z())),({zt:C,It:k,Qt:$,Zt:R})=>{const{tn:Y,nn:H,sn:K,en:te}=R||{},{Ct:le,ft:he}=$||{},{B:Q}=n,{k:ne}=ln(),{cn:G,j:oe}=r,[me,ie]=C("showNativeOverlaidScrollbars"),[ge,ce]=C("scrollbars.theme"),[fe,ve]=C("scrollbars.visibility"),[U,J]=C("scrollbars.autoHide"),[Z,pe]=C("scrollbars.autoHideSuspend"),[be]=C("scrollbars.autoHideDelay"),[Se,ut]=C("scrollbars.dragScroll"),[kt,nt]=C("scrollbars.clickScroll"),[Ie,Ke]=C("overflow"),St=he&&!k,an=oe.x||oe.y,Nn=Y||H||te||le||k,Ut=K||ve||Ke,ze=me&&ne.x&&ne.y,Ot=(qt,Ct,ft)=>{const Bn=qt.includes(Ar)&&(fe===yn||fe==="auto"&&Ct===Ar);return A(Gg,Bn,ft),Bn};if(d=be,St&&(Z&&an?(F(!1),m(),w(()=>{m=Te(D,"scroll",ae(F,!0),{A:!0})})):F(!0)),ie&&A(Hg,ze),ce&&(A(f),A(ge,!0),f=ge),pe&&!Z&&F(!0),J&&(a=U==="move",c=U==="leave",u=U==="never",L(u,!0)),ut&&A(Xg,Se),nt&&A(Zg,!!kt),Ut){const qt=Ot(Ie.x,G.x,!0),Ct=Ot(Ie.y,G.y,!1);A(Kg,!(qt&&Ct))}Nn&&(S(),j(),q(),te&&N(),A(lu,!oe.x,!0),A(lu,!oe.y,!1),A(Ug,Q&&!I))},{},M]},pv=e=>{const t=ln(),{K:n,U:r}=t,{elements:i}=n(),{padding:l,viewport:s,content:a}=i,c=Ml(e),u=c?{}:e,{elements:f}=u,{padding:m,viewport:d,content:h}=f||{},p=c?e:u.target,g=zf(p),v=p.ownerDocument,_=v.documentElement,b=()=>v.defaultView||at,w=ae(uv,[p]),y=ae(rd,[p]),O=ae(Tr,""),T=ae(w,O,s),M=ae(y,O,a),z=G=>{const oe=Nr(G),me=Nl(G),ie=tn(G,ya),ge=tn(G,_a);return me.w-oe.w>0&&!Or(ie)||me.h-oe.h>0&&!Or(ge)},P=T(d),D=P===p,I=D&&g,A=!D&&M(h),j=!D&&P===A,S=I?_:P,N=I?S:p,q=!D&&y(O,l,m),L=!j&&A,E=[L,S,q,N].map(G=>Ml(G)&&!vi(G)&&G),F=G=>G&&bf(E,G),X=!F(S)&&z(S)?S:p,B=I?_:S,k={dt:p,vt:N,L:S,rn:q,ht:L,gt:B,Kt:I?v:S,ln:g?_:X,Gt:v,bt:g,At:c,V:D,an:b,wt:G=>Ea(S,pn,G),yt:(G,oe)=>Tl(S,pn,G,oe),St:()=>Tl(B,pn,Fg,!0)},{dt:$,vt:R,rn:Y,L:H,ht:K}=k,te=[()=>{Zt(R,[jn,Us]),Zt($,Us),g&&Zt(_,[Us,jn])}];let le=wo([K,H,Y,R,$].find(G=>G&&!F(G)));const he=I?$:K||H,Q=ae(bt,te);return[k,()=>{const G=b(),oe=xo(),me=ve=>{ot(vi(ve),wo(ve)),Lr(ve)},ie=ve=>Te(ve,"focusin focusout focus blur",Hf,{I:!0,T:!1}),ge="tabindex",ce=wa(H,ge),fe=ie(oe);return hn(R,jn,D?"":Ig),hn(Y,Do,""),hn(H,pn,""),hn(K,ru,""),D||(hn(H,ge,ce||"-1"),g&&hn(_,nu,"")),ot(he,le),ot(R,Y),ot(Y||R,!D&&H),ot(H,K),Ae(te,[fe,()=>{const ve=xo(),U=F(H),J=U&&ve===H?$:ve,Z=ie(J);Zt(Y,Do),Zt(K,ru),Zt(H,pn),g&&Zt(_,nu),ce?hn(H,ge,ce):Zt(H,ge),F(K)&&me(K),U&&me(H),F(Y)&&me(Y),Oo(J),Z()}]),r&&!D&&(xa(H,pn,Zf),Ae(te,ae(Zt,H,pn))),Oo(!D&&g&&oe===$&&G.top===G?H:oe),fe(),le=0,Q},Q]},gv=({ht:e})=>({Qt:t,un:n,It:r})=>{const{$t:i}=t||{},{Ot:l}=n;e&&(i||r)&&yi(e,{[as]:l&&"100%"})},vv=({vt:e,rn:t,L:n,V:r},i)=>{const[l,s]=vt({i:Eg,o:Qc()},ae(Qc,e,"padding",""));return({zt:a,Qt:c,un:u,It:f})=>{let[m,d]=s(f);const{U:h}=ln(),{_t:p,xt:g,Ct:v}=c||{},{B:_}=u,[b,w]=a("paddingAbsolute");(p||d||(f||g))&&([m,d]=l(f));const O=!r&&(w||v||d);if(O){const T=!b||!t&&!h,M=m.r+m.l,z=m.t+m.b,P={[Of]:T&&!_?-M:0,[Mf]:T?-z:0,[Sf]:T&&_?-M:0,top:T?-m.t:0,right:T?_?-m.r:"auto":0,left:T?_?"auto":-m.l:0,[os]:T&&`calc(100% + ${M}px)`},D={[wf]:T?m.t:0,[xf]:T?m.r:0,[kf]:T?m.b:0,[Ef]:T?m.l:0};yi(t||n,P),yi(n,D),we(i,{rn:m,fn:!T,F:t?D:we({},P,D)})}return{_n:O}}},yv=(e,t)=>{const n=ln(),{vt:r,rn:i,L:l,V:s,Kt:a,gt:c,bt:u,yt:f,an:m}=e,{U:d}=n,h=u&&s,p=ae(vf,0),g={display:()=>!1,direction:k=>k!=="ltr",flexDirection:k=>k.endsWith("-reverse"),writingMode:k=>k!=="horizontal-tb"},v=Yt(g),_={i:Df,o:{w:0,h:0}},b={i:ol,o:{}},w=k=>{f(Kf,!h&&k)},y=k=>{if(!v.some(Q=>{const ne=k[Q];return ne&&g[Q](ne)}))return{D:{x:0,y:0},M:{x:1,y:1}};w(!0);const R=_t(c),Y=f(Yg,!0),H=Te(a,Ar,Q=>{const ne=_t(c);Q.isTrusted&&ne.x===R.x&&ne.y===R.y&&Vf(Q)},{I:!0,A:!0});Jt(c,{x:0,y:0}),Y();const K=_t(c),te=Nl(c);Jt(c,{x:te.w,y:te.h});const le=_t(c);Jt(c,{x:le.x-K.x<1&&-te.w,y:le.y-K.y<1&&-te.h});const he=_t(c);return Jt(c,R),ma(()=>H()),{D:K,M:he}},O=(k,$)=>{const R=at.devicePixelRatio%1!==0?1:0,Y={w:p(k.w-$.w),h:p(k.h-$.h)};return{w:Y.w>R?Y.w:0,h:Y.h>R?Y.h:0}},T=(k,$)=>{const R=(Y,H,K,te)=>{const le=Y===yn?zt:ev(Y),he=Or(Y),Q=Or(K);return!H&&!te?zt:he&&Q?yn:he?H&&te?le:H?yn:zt:H?le:Q&&te?yn:zt};return{x:R($.x,k.x,$.y,k.y),y:R($.y,k.y,$.x,k.x)}},M=k=>{const $=Y=>[yn,zt,Ar].map(H=>C(To(H),Y)),R=$(!0).concat($()).join(" ");f(R),f(Yt(k).map(Y=>C(k[Y],Y==="x")).join(" "),!0)},[z,P]=vt(_,ae(Sa,l)),[D,I]=vt(_,ae(Nl,l)),[A,j]=vt(_),[S]=vt(b),[N,q]=vt(_),[L]=vt(b),[E]=vt({i:(k,$)=>cs(k,$,v),o:{}},()=>Ng(l)?tn(l,v):{}),[F,X]=vt({i:(k,$)=>ol(k.D,$.D)&&ol(k.M,$.M),o:Uf()}),B=Pi(Qf),C=(k,$)=>`${$?zg:Ag}${xg(k)}`;return({zt:k,Qt:$,un:R,It:Y},{_n:H})=>{const{_t:K,Ht:te,xt:le,Ct:he,ft:Q,Et:ne}=$||{},G=B&&B.R(e,t,R,n,k),{X:oe,Y:me,W:ie}=G||{},[ge,ce]=Jg(k,n),[fe,ve]=k("overflow"),U=Or(fe.x),J=Or(fe.y),Z=K||H||le||he||ne||ce;let pe=P(Y),be=I(Y),Se=j(Y),ut=q(Y);if(ce&&d&&f(Zf,!ge),Z){Ea(r,jn,cl)&&w(!0);const Br=me&&me(),[Kn]=pe=z(Y),[Zn]=be=D(Y),$n=jf(l),gr=h&&Tg(m()),Os={w:p(Zn.w+Kn.w),h:p(Zn.h+Kn.h)},Gr={w:p((gr?gr.w:$n.w+p($n.w-Zn.w))+Kn.w),h:p((gr?gr.h:$n.h+p($n.h-Zn.h))+Kn.h)};Br&&Br(),ut=N(Gr),Se=A(O(Os,Gr),Y)}const[kt,nt]=ut,[Ie,Ke]=Se,[St,an]=be,[Nn,Ut]=pe,[ze,Ot]=S({x:Ie.w>0,y:Ie.h>0}),qt=U&&J&&(ze.x||ze.y)||U&&ze.x&&!ze.y||J&&ze.y&&!ze.x,Ct=H||he||ne||Ut||an||nt||Ke||ve||ce||Z||te&&h,[ft,Bn]=E(Y),qr=he||Q||Bn||Ot||Y,[Fi,Ss]=qr?F(y(ft),Y):X();let Gn=T(ze,fe);w(!1),Ct&&(M(Gn),Gn=tv(l,ze),ie&&oe&&(oe(Gn,St,Nn),yi(l,ie(Gn))));const[Cn,pr]=L(Gn);return Tl(r,jn,cl,qt),Tl(i,Do,cl,qt),we(t,{cn:Cn,Vt:{x:kt.w,y:kt.h},Rt:{x:Ie.w,y:Ie.h},j:ze,Dt:Cg(Fi,Ie)}),{sn:pr,tn:nt,nn:Ke,en:Ss||Ke,dn:qr}}},_v=e=>{const[t,n,r]=pv(e),i={rn:{t:0,r:0,b:0,l:0},fn:!1,F:{[Of]:0,[Mf]:0,[Sf]:0,[wf]:0,[xf]:0,[kf]:0,[Ef]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},cn:{x:zt,y:zt},j:{x:!1,y:!1},Dt:Uf()},{dt:l,gt:s,V:a,St:c}=t,{U:u,k:f}=ln(),m=!u&&(f.x||f.y),d=[gv(t),vv(t,i),yv(t,i)];return[n,h=>{const p={},v=m&&_t(s),_=v&&c();return Oe(d,b=>{we(p,b(h,p)||{})}),Jt(s,v),_&&_(),a||Jt(l,0),p},i,t,r]},bv=(e,t,n,r,i)=>{let l=!1;const s=uu(t,{}),[a,c,u,f,m]=_v(e),[d,h,p]=cv(f,u,s,y=>{w({},y)}),[g,v,,_]=hv(e,t,p,u,f,i),b=y=>Yt(y).some(O=>!!y[O]),w=(y,O)=>{if(n())return!1;const{pn:T,It:M,Tt:z,vn:P}=y,D=T||{},I=!!M||!l,A={zt:uu(t,D,I),pn:D,It:I};if(P)return v(A),!1;const j=O||h(we({},A,{Tt:z})),S=c(we({},A,{un:p,Qt:j}));v(we({},A,{Qt:j,Zt:S}));const N=b(j),q=b(S),L=N||q||!ba(D)||I;return l=!0,L&&r(y,{Qt:j,Zt:S}),L};return[()=>{const{ln:y,gt:O,St:T}=f,M=_t(y),z=[d(),a(),g()],P=T();return Jt(O,M),P(),ae(bt,z)},w,()=>({gn:p,hn:u}),{bn:f,wn:_},m]},Da=new WeakMap,wv=(e,t)=>{Da.set(e,t)},xv=e=>{Da.delete(e)},id=e=>Da.get(e),At=(e,t,n)=>{const{tt:r}=ln(),i=Ml(e),l=i?e:e.target,s=id(l);if(t&&!s){let a=!1;const c=[],u={},f=D=>{const I=Tf(D),A=Pi(Pg);return A?A(I,!0):I},m=we({},r(),f(t)),[d,h,p]=Mo(),[g,v,_]=Mo(n),b=(D,I)=>{_(D,I),p(D,I)},[w,y,O,T,M]=bv(e,m,()=>a,({pn:D,It:I},{Qt:A,Zt:j})=>{const{_t:S,Ct:N,$t:q,xt:L,Ht:E,ft:F}=A,{tn:X,nn:B,sn:C,en:k}=j;b("updated",[P,{updateHints:{sizeChanged:!!S,directionChanged:!!N,heightIntrinsicChanged:!!q,overflowEdgeChanged:!!X,overflowAmountChanged:!!B,overflowStyleChanged:!!C,scrollCoordinatesChanged:!!k,contentMutation:!!L,hostMutation:!!E,appear:!!F},changedOptions:D||{},force:!!I}])},D=>b("scroll",[P,D])),z=D=>{xv(l),bt(c),a=!0,b("destroyed",[P,D]),h(),v()},P={options(D,I){if(D){const A=I?r():{},j=Jf(m,we(A,f(D)));ba(j)||(we(m,j),y({pn:j}))}return we({},m)},on:g,off:(D,I)=>{D&&I&&v(D,I)},state(){const{gn:D,hn:I}=O(),{B:A}=D,{Vt:j,Rt:S,cn:N,j:q,rn:L,fn:E,Dt:F}=I;return we({},{overflowEdge:j,overflowAmount:S,overflowStyle:N,hasOverflow:q,scrollCoordinates:{start:F.D,end:F.M},padding:L,paddingAbsolute:E,directionRTL:A,destroyed:a})},elements(){const{dt:D,vt:I,rn:A,L:j,ht:S,gt:N,Kt:q}=T.bn,{jt:L,Jt:E}=T.wn,F=B=>{const{Mt:C,Ut:k,Lt:$}=B;return{scrollbar:$,track:k,handle:C}},X=B=>{const{Xt:C,Yt:k}=B,$=F(C[0]);return we({},$,{clone:()=>{const R=F(k());return y({vn:!0}),R}})};return we({},{target:D,host:I,padding:A||j,viewport:j,content:S||j,scrollOffsetElement:N,scrollEventElement:q,scrollbarHorizontal:X(L),scrollbarVertical:X(E)})},update:D=>y({It:D,Tt:!0}),destroy:ae(z,!1),plugin:D=>u[Yt(D)[0]]};return Ae(c,[M]),wv(l,P),Gf(qf,At,[P,d,u]),fv(T.bn.bt,!i&&e.cancel)?(z(!0),P):(Ae(c,w()),b("initialized",[P]),P.update(),P)}return s};At.plugin=e=>{const t=Ft(e),n=t?e:[e],r=n.map(i=>Gf(i,At)[0]);return $g(n),t?r:r[0]};At.valid=e=>{const t=e&&e.elements,n=Vt(t)&&t();return Ol(n)&&!!id(n.target)};At.env=()=>{const{P:e,k:t,U:n,J:r,ot:i,st:l,K:s,Z:a,tt:c,nt:u}=ln();return we({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,scrollTimeline:r,staticDefaultInitialization:i,staticDefaultOptions:l,getDefaultInitialization:s,setDefaultInitialization:a,getDefaultOptions:c,setDefaultOptions:u})};At.nonce=lv;At.trustedTypePolicy=Mg;const Ev=()=>{if(typeof window>"u"){const u=()=>{};return[u,u]}let e,t;const n=window,r=typeof n.requestIdleCallback=="function",i=n.requestAnimationFrame,l=n.cancelAnimationFrame,s=r?n.requestIdleCallback:i,a=r?n.cancelIdleCallback:l,c=()=>{a(e),l(t)};return[(u,f)=>{c(),e=s(r?()=>{c(),t=i(u)}:u,typeof f=="object"?f:{timeout:2233})},c]},ld=e=>{const{options:t,events:n,defer:r}=e||{},[i,l]=o.useMemo(Ev,[]),s=o.useRef(null),a=o.useRef(r),c=o.useRef(t),u=o.useRef(n);return o.useEffect(()=>{a.current=r},[r]),o.useEffect(()=>{const{current:f}=s;c.current=t,At.valid(f)&&f.options(t||{},!0)},[t]),o.useEffect(()=>{const{current:f}=s;u.current=n,At.valid(f)&&f.on(n||{},!0)},[n]),o.useEffect(()=>()=>{var f;l(),(f=s.current)==null||f.destroy()},[]),o.useMemo(()=>[f=>{const m=s.current;if(At.valid(m))return;const d=a.current,h=c.current||{},p=u.current||{},g=()=>s.current=At(f,h,p);d?i(g,d):g()},()=>s.current],[])},kv=(e,t)=>{const{element:n="div",options:r,events:i,defer:l,children:s,...a}=e,c=n,u=o.useRef(null),f=o.useRef(null),[m,d]=ld({options:r,events:i,defer:l});return o.useEffect(()=>{const{current:h}=u,{current:p}=f;if(!h)return;const g=h;return m(n==="body"?{target:g,cancel:{body:null}}:{target:g,elements:{viewport:p,content:p}}),()=>{var v;return(v=d())==null?void 0:v.destroy()}},[m,n]),o.useImperativeHandle(t,()=>({osInstance:d,getElement:()=>u.current}),[]),o.createElement(c,{"data-overlayscrollbars-initialize":"",ref:u,...a},n==="body"?s:o.createElement("div",{"data-overlayscrollbars-contents":"",ref:f},s))},Sv=o.forwardRef(kv),sd=({ref:e,...t})=>{const n=o.useRef(null),[r]=ld({defer:!0,events:{initialized:()=>{},destroyed:()=>{}},options:{scrollbars:{theme:"os-theme-light",clickScroll:!0}}});return o.useImperativeHandle(e,()=>n.current?.getElement()),o.useEffect(()=>{n.current&&r(n.current.getElement())},[n.current,r]),o.createElement(Sv,{ref:n,...t},t.children)},Ov="_wrapper_1qten_1",Mv={wrapper:Ov},Ra=({ref:e,...t})=>o.createElement(sd,{className:Mv.wrapper,...t,ref:e},t.children),Dv="_wrapper_1s6pd_1",Rv={wrapper:Dv},Tv=({placement:e="bottom",...t})=>{const[n,r]=o.useState(t.initialOpen),i=t.open??n,l=t.setOpen??r,s=Ql({open:i,onOpenChange:d=>{t.disabled||l(d)},whileElementsMounted:sa,middleware:[oa({padding:10}),ff(8),df({apply({rects:d,elements:h,placement:p}){console.log(p),Object.assign(h.floating.style,{width:`${d.reference.width}px`,minWidth:"var(--numbers-320)",maxWidth:"var(--numbers-400)"})},padding:10})]}),a=s.context,c=fa(a),u=ts(a,{role:"listbox"}),f=Xl(a),m=Jl([c,u,f]);return o.useMemo(()=>({open:i,setOpen:l,role:u,dismiss:f,floating:s,interactions:m,disabled:t.disabled}),[i,l,u,f,s,m,t.disabled])},od=o.createContext({}),ad=()=>{const e=o.useContext(od);if(e==null)throw new Error("Dropdown components must be wrapped in <Dropdown />");return e},Nv=({children:e,...t})=>{const n=Tv(t);return o.createElement(od.Provider,{value:n},e)},Cv=o.memo(e=>{const t=ad();return o.createElement("div",{className:Rv.wrapper,...t.interactions.getReferenceProps(),ref:t.floating.refs.setReference},e.reference(t))}),$v=o.memo(e=>{const t=ad(),{isMounted:n,styles:r}=da(t.floating.context);return!t.open&&!n?null:o.createElement(Zl,null,o.createElement(ua,{context:t.floating.context,initialFocus:-1,visuallyHiddenDismiss:!0,modal:!1},o.createElement(Ra,{...t.interactions.getFloatingProps(),ref:t.floating.refs.setFloating,style:{...r,...t.floating.floatingStyles}},e.children)))}),oi=Object.assign(Nv,{Reference:Cv,Target:$v}),Pv=({})=>{const[e,t]=o.useState(!1);return o.createElement(oi,{open:e,setOpen:t},o.createElement(oi.Reference,{reference:()=>o.createElement(di,{onClick:()=>t(!0)},"Нажми меня")}))},Ye={"font-size__h1":"_font-size__h1_yyj49_1","font-size__h2":"_font-size__h2_yyj49_6","font-size__h3":"_font-size__h3_yyj49_11","font-size__h4":"_font-size__h4_yyj49_16","font-size__h5":"_font-size__h5_yyj49_21","font-size__h6":"_font-size__h6_yyj49_26","font-size__body-l":"_font-size__body-l_yyj49_31","font-size__body-m":"_font-size__body-m_yyj49_36","font-size__body-s":"_font-size__body-s_yyj49_41","font-size__caption-l":"_font-size__caption-l_yyj49_46","font-size__caption-m":"_font-size__caption-m_yyj49_51","font-size__caption-s":"_font-size__caption-s_yyj49_56","font-weight__light":"_font-weight__light_yyj49_62","font-weight__regular":"_font-weight__regular_yyj49_65","font-weight__medium":"_font-weight__medium_yyj49_68","font-weight__bold":"_font-weight__bold_yyj49_71","font-weight__semi-bold":"_font-weight__semi-bold_yyj49_74","font-weight__extra-bold":"_font-weight__extra-bold_yyj49_77","font-weight__black":"_font-weight__black_yyj49_80"},ue=e=>{const t=o.useMemo(()=>se({[Ye["font-size__h1"]]:e.size==="h1",[Ye["font-size__h2"]]:e.size==="h2",[Ye["font-size__h3"]]:e.size==="h3",[Ye["font-size__h4"]]:e.size==="h4",[Ye["font-size__h5"]]:e.size==="h5",[Ye["font-size__h6"]]:e.size==="h6",[Ye["font-size__body-l"]]:e.size==="body-l",[Ye["font-size__body-m"]]:e.size==="body-m",[Ye["font-size__body-s"]]:e.size==="body-s",[Ye["font-size__caption-l"]]:e.size==="caption-l",[Ye["font-size__caption-m"]]:e.size==="caption-m",[Ye["font-size__caption-s"]]:e.size==="caption-s"},{[Ye["font-weight__light"]]:e.weight==="light",[Ye["font-weight__regular"]]:e.weight==="regular",[Ye["font-weight__medium"]]:e.weight==="medium",[Ye["font-weight__semi-bold"]]:e.weight==="semi-bold",[Ye["font-weight__bold"]]:e.weight==="bold",[Ye["font-weight__extra-bold"]]:e.weight==="extra-bold",[Ye["font-weight__black"]]:e.weight==="black"}),[e.size,e.weight]);return o.Children.map(e.children,n=>{if(o.isValidElement(n)){const r=n;return o.cloneElement(r,{className:se(t,r.props.className)})}return n})},Iv="_wrapper_1x3lz_1",zv="_input_1x3lz_8",Av="_icon_1x3lz_17",Kr={wrapper:Iv,input:zv,icon:Av,"size--md":"_size--md_1x3lz_29","size--sm":"_size--sm_1x3lz_33"},Lv=({size:e="md",...t})=>{const n=o.useMemo(()=>se(Kr.icon,{[Kr["size--md"]]:e==="md",[Kr["size--sm"]]:e==="sm"}),[e]);return o.createElement("div",{className:Kr.wrapper},o.createElement("input",{...t,type:"radio",className:Kr.input}),o.createElement("span",{className:n}))},Fv="_container_rhquy_1",Yv="_wrapper_rhquy_6",jv="_element_rhquy_13",Wv="_content_rhquy_20",Vv="_label_rhquy_27",Hv="_caption_rhquy_31",un={container:Fv,wrapper:Yv,element:jv,content:Wv,label:Vv,caption:Hv,"size--medium":"_size--medium_rhquy_36","with-label":"_with-label_rhquy_36","size--small":"_size--small_rhquy_42"},Uv=({size:e="md",label:t,caption:n,...r})=>{const i=o.useMemo(()=>se(un.wrapper,{[un["size--medium"]]:e==="md",[un["size--small"]]:e==="sm"},{[un["with-label"]]:t}),[e,t]);return o.createElement("div",{className:un.container},o.createElement("label",{className:i},o.createElement("div",{className:un.element},o.createElement(Lv,{...r,size:e})),t&&o.createElement("div",{className:un.content},o.createElement("div",{className:un.label},o.createElement(ue,{size:e==="md"?"body-s":"caption-l",weight:"medium"},o.createElement("p",null,t))),n&&o.createElement("div",{className:un.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,n))))))},qv="_container_cdy59_1",Bv="_wrapper_cdy59_9",Gv="_input_cdy59_20",Kv="_disabled_cdy59_25",Zv="_icon_cdy59_29",Qn={container:qv,wrapper:Bv,input:Gv,disabled:Kv,icon:Zv,"size--medium":"_size--medium_cdy59_43","size--small":"_size--small_cdy59_48"},Xv=({size:e="md",...t})=>{const n=o.useMemo(()=>se(Qn.wrapper,{[Qn["size--medium"]]:e==="md",[Qn["size--small"]]:e==="sm"},{[Qn.disabled]:t.disabled}),[e,t.checked,t.disabled]);return o.createElement("div",{className:Qn.container},o.createElement("input",{...t,type:"checkbox",className:Qn.input}),o.createElement("div",{className:n},o.createElement("span",{className:Qn.icon},o.createElement(xe,{icon:"check-fill"}))))},Qv="_wrapper_uamo5_1",Jv="_element_uamo5_8",ey="_content_uamo5_12",ty="_label_uamo5_16",ny="_caption_uamo5_20",Pn={wrapper:Qv,element:Jv,content:ey,label:ty,caption:ny,"size--medium":"_size--medium_uamo5_25","with-label":"_with-label_uamo5_25","size--small":"_size--small_uamo5_31"},ry=({size:e="md",label:t,caption:n,...r})=>{const i=o.useMemo(()=>se(Pn.wrapper,{[Pn["size--medium"]]:e==="md",[Pn["size--small"]]:e==="sm"},{[Pn["with-label"]]:t}),[e,t]);return o.createElement("label",{className:i},o.createElement("div",{className:Pn.element},o.createElement(Xv,{size:e,...r})),t&&o.createElement("div",{className:Pn.content},o.createElement("div",{className:Pn.label},o.createElement(ue,{size:e==="md"?"body-s":"caption-l",weight:"medium"},o.createElement("p",null,t))),n&&o.createElement("div",{className:Pn.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,n)))))},iy="_wrapper_qudyw_1",ly="_focused_qudyw_18",sy="_content_qudyw_46",oy="_input_qudyw_53",ay="_badge_qudyw_77",cy="_destructive_qudyw_94",uy="_disabled_qudyw_109",$t={wrapper:iy,focused:ly,"lead-icon":"_lead-icon_qudyw_25","tail-icon":"_tail-icon_qudyw_26",content:sy,input:oy,badge:ay,"size--medium":"_size--medium_qudyw_85","size--extra-small":"_size--extra-small_qudyw_89",destructive:cy,disabled:uy},ds=({ref:e,size:t="md",target:n,leadIcon:r,tailIcon:i,badge:l,...s})=>{const[a,c]=o.useState(!1),u=o.useMemo(()=>se($t.wrapper,{[$t.focused]:a},{[$t["size--medium"]]:t==="md",[$t["size--extra-small"]]:t==="xs"},{[$t.disabled]:s.disabled},{[$t.destructive]:n==="destructive"}),[a,t,n,s.disabled]);o.useEffect(()=>{a&&s.disabled&&c(!1)},[s.disabled]);const f=d=>{c(!0),s.onFocus&&s.onFocus(d)},m=d=>{c(!1),s.onBlur&&s.onBlur(d)};return o.createElement("div",{className:u},r&&o.createElement("div",{className:$t["lead-icon"]},r),o.createElement("div",{className:$t.content},o.createElement("input",{ref:e,...s,className:$t.input,onFocus:f,onBlur:m})),l&&o.createElement("div",{className:$t.badge},o.createElement(Oi,{size:"sm",color:"gray",label:l,disabled:s.disabled})),i&&o.createElement("div",{className:$t["tail-icon"]},i))};function du(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fy(e,t,n){return t=Cl(t),function(r,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}(r)}(e,fd()?Reflect.construct(t,n||[],Cl(e).constructor):t.apply(e,n))}function dy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function my(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function cd(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(c,u){if(c){if(typeof c=="string")return du(c,u);var f={}.toString.call(c).slice(8,-1);return f==="Object"&&c.constructor&&(f=c.constructor.name),f==="Map"||f==="Set"?Array.from(c):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?du(c,u):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
33
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return s=c.done,c},e:function(c){a=!0,l=c},f:function(){try{s||n.return==null||n.return()}finally{if(a)throw l}}}}function ud(e,t,n){return(t=function(r){var i=function(l,s){if(typeof l!="object"||!l)return l;var a=l[Symbol.toPrimitive];if(a!==void 0){var c=a.call(l,s);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(l)}(r,"string");return typeof i=="symbol"?i:i+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cl(e){return Cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cl(e)}function hy(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&No(e,t)}function fd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fd=function(){return!!e})()}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mu(Object(n),!0).forEach(function(r){ud(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function py(e,t){if(e==null)return{};var n,r,i=function(s,a){if(s==null)return{};var c={};for(var u in s)if({}.hasOwnProperty.call(s,u)){if(a.includes(u))continue;c[u]=s[u]}return c}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function No(e,t){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},No(e,t)}function ai(e,t){var n,r=t.replacementChars,i=t.replacement,l=t.separate,s=r,a="",c=cd(e);try{for(c.s();!(n=c.n()).done;){var u,f=n.value,m=!Object.prototype.hasOwnProperty.call(i,f)&&((u=i[s[0]])===null||u===void 0?void 0:u.test(f));(l&&f===s[0]||m)&&(s=s.slice(1),a+=f)}}catch(d){c.e(d)}finally{c.f()}return a}function dd(e,t){var n,r=t.mask,i=t.replacement,l=t.separate,s=t.showMask,a=0,c="",u=cd(r);try{for(u.s();!(n=u.n()).done;){var f=n.value;if(!s&&e[a]===void 0)break;Object.prototype.hasOwnProperty.call(i,f)&&e[a]!==void 0?c+=e[a++]:c+=f}}catch(d){u.e(d)}finally{u.f()}if(l&&!s){for(var m=r.length-1;m>=0&&c[m]===r[m];m--);c=c.slice(0,m+1)}return c}function md(e,t){for(var n=t.mask,r=t.replacement,i=[],l=0;l<n.length;l++){var s,a=(s=e[l])!==null&&s!==void 0?s:n[l],c=Object.prototype.hasOwnProperty.call(r,a)?"replacement":e[l]!==void 0&&e[l]!==n[l]?"input":"mask";i.push({type:c,value:a,index:l})}return i}function Wr(e){return e.length>0?ud({},e,/./):{}}function Co(e,t){for(var n=t.start,r=n===void 0?0:n,i=t.end,l=t.mask,s=t.replacement,a=t.separate,c=e.slice(r,i),u=l.slice(r,i),f="",m=0;m<u.length;m++){var d=Object.prototype.hasOwnProperty.call(s,u[m]);d&&c[m]!==void 0&&c[m]!==u[m]?f+=c[m]:d&&a&&(f+=u[m])}return f}function hd(e,t){var n=t.mask,r=t.replacement,i=typeof r=="string"?Wr(r):r,l=RegExp("[^".concat(Object.keys(i).join(""),"]"),"g");return dd(ai(e,{replacementChars:n.replace(l,""),replacement:i,separate:!1}),{mask:n,replacement:i,separate:!1,showMask:!1})}function gy(e,t){var n=t.mask,r=t.replacement,i=typeof r=="string"?Wr(r):r,l=Co(e,{mask:n,replacement:i,separate:!1}),s=RegExp("[^".concat(Object.keys(i).join(""),"]"),"g");return ai(l,{replacementChars:n.replace(s,""),replacement:i,separate:!1})}function vy(e,t){var n=t.mask,r=t.replacement,i=typeof r=="string"?Wr(r):r;return md(hd(e,{mask:n,replacement:i}),{mask:n,replacement:i})}var yy=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"];function hu(e){return yy.includes(e)?"\\".concat(e):e}function _y(e,t){for(var n=t.mask,r=t.replacement,i=typeof r=="string"?Wr(r):r,l=e==="partial"||e==="partial-inexact",s=e==="full"||e==="partial",a="",c=0;c<n.length;c++){var u=n[c];c===0&&(a="^"),l&&(a+="("),a+=Object.prototype.hasOwnProperty.call(i,u)?"".concat(s?"(?!".concat(hu(u),")"):"","(").concat(i[u].source,")"):hu(u),c===n.length-1&&(l&&(a+=")?".repeat(n.length)),a+="$")}return a}function pd(e,t){return new Proxy(e,{set:function(n,r,i){return r==="current"&&(i!==e.current&&(e.current!==null&&t.unregister(e.current),i!==null&&t.register(i)),n[r]=i,!0)}})}function by(e,t,n){return t=_i(t),function(r,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}(r)}(e,Ta()?Reflect.construct(t,n||[],_i(e).constructor):t.apply(e,n))}function gd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vd(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function wy(e,t,n){return(t=function(r){var i=function(l,s){if(typeof l!="object"||!l)return l;var a=l[Symbol.toPrimitive];if(a!==void 0){var c=a.call(l,s);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(l)}(r,"string");return typeof i=="symbol"?i:i+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_i(e)}function xy(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bi(e,t)}function Ta(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ta=function(){return!!e})()}function pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pu(Object(n),!0).forEach(function(r){wy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ey(e,t){if(e==null)return{};var n,r,i=function(s,a){if(s==null)return{};var c={};for(var u in s)if({}.hasOwnProperty.call(s,u)){if(a.includes(u))continue;c[u]=s[u]}return c}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bi(e,t){return bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},bi(e,t)}function $o(e){var t=typeof Map=="function"?new Map:void 0;return $o=function(n){if(n===null||!function(i){try{return Function.toString.call(i).indexOf("[native code]")!==-1}catch{return typeof i=="function"}}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return function(i,l,s){if(Ta())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,l);var c=new(i.bind.apply(i,a));return s&&bi(c,s.prototype),c}(n,arguments,_i(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),bi(r,n)},$o(e)}var Cr=function(e){function t(n){var r;return gd(this,t),(r=by(this,t,[n])).name="SyntheticChangeError",r}return xy(t,e),vd(t)}($o(Error)),vu,ky=["options"],yu=["text","email","tel","search","url"],Na=vd(function e(t){var n=t.init,r=t.tracking;gd(this,e);var i=new WeakMap;this.register=function(l){var s;if(yu.includes(l.type)){var a=(s=l._wrapperState)!==null&&s!==void 0?s:{},c=a.initialValue,u=c===void 0?"":c,f=a.controlled,m=f!==void 0&&f,d=n({initialValue:l.value||u,controlled:m}),h=d.value,p=d.options,g={value:h,options:p,fallbackOptions:p},v={id:-1,cachedId:-1},_={value:"",selectionStart:0,selectionEnd:0},b=Object.getOwnPropertyDescriptor("_valueTracker"in l?l:HTMLInputElement.prototype,"value");Object.defineProperty(l,"value",gu(gu({},b),{},{set:function(T){var M;_.value=T,b==null||(M=b.set)===null||M===void 0||M.call(l,T)}})),l.value=h;var w=function(){var T=function(){var M,z;_.selectionStart=(M=l.selectionStart)!==null&&M!==void 0?M:0,_.selectionEnd=(z=l.selectionEnd)!==null&&z!==void 0?z:0,v.id=window.setTimeout(T)};v.id=window.setTimeout(T)},y=function(){window.clearTimeout(v.id),v.id=-1,v.cachedId=-1},O=function(T){try{var M,z;if(v.cachedId===v.id)throw new Cr("The input selection has not been updated.");v.cachedId=v.id;var P=l.value,D=l.selectionStart,I=l.selectionEnd;if(D===null||I===null)throw new Cr("The selection attributes have not been initialized.");var A,j=_.value;if(T.inputType===void 0&&(_.selectionStart=0,_.selectionEnd=j.length),D>_.selectionStart?A="insert":D<=_.selectionStart&&D<_.selectionEnd?A="deleteBackward":D===_.selectionEnd&&P.length<j.length&&(A="deleteForward"),A===void 0||(A==="deleteBackward"||A==="deleteForward")&&P.length>j.length)throw new Cr("Input type detection error.");var S="",N=_.selectionStart,q=_.selectionEnd;if(A==="insert")S=P.slice(_.selectionStart,D);else{var L=j.length-P.length;N=D,q=D+L}g.value!==j?g.options=g.fallbackOptions:g.fallbackOptions=g.options;var E=g.options,F=r({inputType:A,previousValue:j,previousOptions:E,value:P,addedValue:S,changeStart:N,changeEnd:q,selectionStart:D,selectionEnd:I}),X=F.options,B=Ey(F,ky);l.value=B.value,l.setSelectionRange(B.selectionStart,B.selectionEnd),g.value=B.value,g.options=X,_.selectionStart=B.selectionStart,_.selectionEnd=B.selectionEnd,(M=l._valueTracker)===null||M===void 0||(z=M.setValue)===null||z===void 0||z.call(M,j)}catch(C){if(l.value=_.value,l.setSelectionRange(_.selectionStart,_.selectionEnd),T.preventDefault(),T.stopPropagation(),C.name!=="SyntheticChangeError")throw C}};document.activeElement===l&&w(),l.addEventListener("focus",w),l.addEventListener("blur",y),l.addEventListener("input",O),i.set(l,{onFocus:w,onBlur:y,onInput:O})}else process.env.NODE_ENV!=="production"&&console.warn("Warn: The input element type does not match one of the types: ".concat(yu.join(", "),"."))},this.unregister=function(l){var s=i.get(l);s!==void 0&&(l.removeEventListener("focus",s.onFocus),l.removeEventListener("blur",s.onBlur),l.removeEventListener("input",s.onInput),i.delete(l))}});vu=Na,Object.defineProperty(vu.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Input"});var Bs=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new e("".concat(n.join(`
34
-
35
- `),`
36
- `))}},_u,Sy=["track","modify"];function yr(e){var t,n,r,i;return{mask:(t=e.mask)!==null&&t!==void 0?t:"",replacement:typeof e.replacement=="string"?Wr(e.replacement):(n=e.replacement)!==null&&n!==void 0?n:{},showMask:(r=e.showMask)!==null&&r!==void 0&&r,separate:(i=e.separate)!==null&&i!==void 0&&i,track:e.track,modify:e.modify}}var yd=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return dy(this,t),(n=fy(this,t,[{init:function(i){var l=i.initialValue,s=i.controlled,a=yr(r),c=a.mask,u=a.replacement,f=a.separate,m=a.showMask;return l=s||l?l:m?c:"",process.env.NODE_ENV!=="production"&&function(d){var h=d.initialValue,p=d.mask,g=d.replacement;h.length>p.length&&console.error(Bs(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.",'Invalid value: "'.concat(h,'".'),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));var v=Object.keys(g).filter(function(O){return O.length>1});v.length>0&&console.error(Bs(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.","Invalid keys: ".concat(v.join(", "),"."),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));for(var _=p.slice(0,h.length),b=-1,w=0;w<_.length;w++){var y=Object.prototype.hasOwnProperty.call(g,_[w]);if(!(_[w]===h[w]||y&&g[_[w]].test(h[w]))){b=w;break}}b!==-1&&console.error(Bs(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(b,"). Check the correctness of the initialized value in the specified property."),'Invalid value: "'.concat(h,'".'),"To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."))}({initialValue:l,mask:c,replacement:u}),{value:l,options:{mask:c,replacement:u,separate:f}}},tracking:function(i){var l=i.inputType,s=i.previousValue,a=i.previousOptions,c=i.addedValue,u=i.changeStart,f=i.changeEnd,m=yr(r),d=m.track,h=m.modify,p=py(m,Sy),g=p.mask,v=p.replacement,_=p.showMask,b=p.separate,w=Gi(Gi({},l==="insert"?{inputType:l,data:c}:{inputType:l,data:null}),{},{value:s,selectionStart:u,selectionEnd:f}),y=d?.(w);if(y===!1)throw new Cr("Custom tracking stop.");y===null?c="":y!==!0&&y!==void 0&&(c=y);var O=h?.(w);O?.mask!==void 0&&(g=O.mask),O?.replacement!==void 0&&(v=typeof O?.replacement=="string"?Wr(O?.replacement):O.replacement),O?.showMask!==void 0&&(_=O.showMask),O?.separate!==void 0&&(b=O.separate);var T=Co(s,Gi({end:u},a)),M=Co(s,Gi({start:f},a)),z=RegExp("[^".concat(Object.keys(v).join(""),"]"),"g"),P=g.replace(z,"");if(T&&(T=ai(T,{replacementChars:P,replacement:v,separate:b}),P=P.slice(T.length)),c&&(c=ai(c,{replacementChars:P,replacement:v,separate:!1}),P=P.slice(c.length)),l==="insert"&&c==="")throw new Cr("The character does not match the key value of the `replacement` object.");if(b){var D=g.slice(u,f).replace(z,""),I=D.length-c.length;I<0?M=M.slice(-I):I>0&&(M=D.slice(-I)+M)}M&&(M=ai(M,{replacementChars:P,replacement:v,separate:b}));var A=dd(T+c+M,{mask:g,replacement:v,separate:b,showMask:_}),j=function(S){var N,q,L,E=S.inputType,F=S.value,X=S.addedValue,B=S.beforeChangeValue,C=S.mask,k=S.replacement,$=S.separate,R=md(F,{mask:C,replacement:k}).filter(function(le){var he=le.type;return he==="input"||$&&he==="replacement"}),Y=(N=R[B.length+X.length-1])===null||N===void 0?void 0:N.index,H=(q=R[B.length-1])===null||q===void 0?void 0:q.index,K=(L=R[B.length+X.length])===null||L===void 0?void 0:L.index;if(E==="insert"){if(Y!==void 0)return Y+1;if(K!==void 0)return K;if(H!==void 0)return H+1}if(E==="deleteForward"){if(K!==void 0)return K;if(H!==void 0)return H+1}if(E==="deleteBackward"){if(H!==void 0)return H+1;if(K!==void 0)return K}var te=F.split("").findIndex(function(le){return Object.prototype.hasOwnProperty.call(k,le)});return te!==-1?te:F.length}({inputType:l,value:A,addedValue:c,beforeChangeValue:T,mask:g,replacement:v,separate:b});return{value:A,selectionStart:j,selectionEnd:j,options:{mask:g,replacement:v,separate:b}}}}])).format=function(i){return hd(i,yr(r))},n.formatToParts=function(i){return vy(i,yr(r))},n.unformat=function(i){return gy(i,yr(r))},n.generatePattern=function(i){return _y(i,yr(r))},n}return hy(t,Na),my(t)}();_u=yd,Object.defineProperty(_u.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Mask"});function Oy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mask,n=e.replacement,r=e.showMask,i=e.separate,l=e.track,s=e.modify,a=o.useRef(null),c=o.useRef({mask:t,replacement:n,showMask:r,separate:i,track:l,modify:s});return c.current.mask=t,c.current.replacement=n,c.current.showMask=r,c.current.separate=i,c.current.track=l,c.current.modify=s,o.useMemo(function(){return pd(a,new yd(c.current))},[])}const Po=({ref:e,mask:t,replacement:n,showMask:r,...i})=>{const l=Oy({mask:t,replacement:n,showMask:r});return o.useImperativeHandle(e,()=>l.current),o.createElement(ds,{ref:l,...i})};function bu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function My(e,t,n){return t=$l(t),function(r,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}(r)}(e,_d()?Reflect.construct(t,n||[],$l(e).constructor):t.apply(e,n))}function Dy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ry(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Ty(e,t,n){return(t=function(r){var i=function(l,s){if(typeof l!="object"||!l)return l;var a=l[Symbol.toPrimitive];if(a!==void 0){var c=a.call(l,s);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(l)}(r,"string");return typeof i=="symbol"?i:i+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$l(e)}function Ny(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Io(e,t)}function _d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_d=function(){return!!e})()}function wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wu(Object(n),!0).forEach(function(r){Ty(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wu(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pl(e,t){if(e==null)return{};var n,r,i=function(s,a){if(s==null)return{};var c={};for(var u in s)if({}.hasOwnProperty.call(s,u)){if(a.includes(u))continue;c[u]=s[u]}return c}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Io(e,t){return Io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Io(e,t)}function ul(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var l,s,a,c,u=[],f=!0,m=!1;try{if(a=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;f=!1}else for(;!(f=(l=a.call(i)).done)&&(u.push(l.value),u.length!==r);f=!0);}catch(d){m=!0,s=d}finally{try{if(!f&&i.return!=null&&(c=i.return(),Object(c)!==c))return}finally{if(m)throw s}}return u}}(e,t)||function(n,r){if(n){if(typeof n=="string")return bu(n,r);var i={}.toString.call(n).slice(8,-1);return i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set"?Array.from(n):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?bu(n,r):void 0}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
37
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function wi(e,t){var n,r,i=t.minusSign,l=t.decimal,s=t.digits,a=t.signBackwards,c="[".concat(s,"]+([^").concat(l).concat(s,"][").concat(s,"]+)*"),u="[".concat(l,"][").concat(s,"]"),f="".concat(c).concat(u,"*"),m="".concat(u,"+"),d=c,h="[".concat(l,"]"),p=(n=(r=RegExp("(".concat(f,"|").concat(m,"|").concat(d,"|").concat(h,")")).exec(e))===null||r===void 0?void 0:r[0])!==null&&n!==void 0?n:"";return a&&RegExp("[".concat(s,"]?.*").concat(i)).test(e)?p+i:RegExp("".concat(i,".*[").concat(s,"]?")).test(e)?i+p:p}function Il(e,t){var n=t.minusSign,r=t.decimal,i=t.digits;return e.replace(RegExp("[^\\".concat(n).concat(r).concat(i,"]"),"g"),"")}function zo(e,t){var n,r,i=t.locales,l=t.options,s=t.localizedValues,a=t.resolvedOptions,c=a.maximumIntegerDigits,u=a.minimumFractionDigits,f=u===void 0?0:u,m=a.maximumFractionDigits,d=ci({},l);d.style=d.format,d.useGrouping=d.groupDisplay,d.minimumFractionDigits=0,d.maximumFractionDigits=0,delete d.format,delete d.groupDisplay,delete d.maximumIntegerDigits;var h=ul(e.split("."),2),p=h[0],g=h[1],v=g===void 0?"":g;p=p.replace(/^(-)?0+/,"$1"),p=(n=(r=RegExp("-?\\d{0,".concat(c??"","}")).exec(p))===null||r===void 0?void 0:r[0])!==null&&n!==void 0?n:"";var _,b=/^-0?$/.test(p)?-0:BigInt(p),w="";if(a.format==="percent"){var y,O,T="[".concat(s.digits,"]+([^").concat(s.digits,"][").concat(s.digits,"]+)*"),M=RegExp(T),z=new Intl.NumberFormat(i,ci(ci({},d),{},{style:"decimal"})).format(b);w=new Intl.NumberFormat(i,d).format(b).replace(M,(y=(O=M.exec(z))===null||O===void 0?void 0:O[0])!==null&&y!==void 0?y:"")}else w=new Intl.NumberFormat(i,d).format(b);if(w=w.replace(/\s/g," "),v.length<f&&(v+="0".repeat(f-v.length)),(m===void 0||m>0)&&(e.includes(".")||v.length>0)&&(w=w.replace(RegExp("([".concat(s.digits,"])([^").concat(s.digits,"]*)$")),"$1".concat(s.decimal,"$2")),v.length>0)){var P=(v=v.slice(0,m)).replace(/\d/g,function(I){return s.digits[Number(I)]});w=w.replace(RegExp("([".concat(s.decimal,"])([^").concat(s.digits,"]*)$")),"$1".concat(P,"$2"))}if(w.includes("+")?_="+":w.includes(s.minusSign)&&(_=s.minusSign),_!==void 0&&s.signBackwards){var D=(w=w.replace(RegExp("[‎؜\\".concat(_,"]"),"g"),"")).search(RegExp("[".concat(s.digits,"](?!.*[").concat(s.digits,"])")));D!==-1&&((w=w.slice(0,D+1)+_+w.slice(D+1)).startsWith("‏")||(w="‏".concat(w)))}return w}function ui(e){var t=new Intl.NumberFormat(e,{useGrouping:!1,signDisplay:"always",minimumIntegerDigits:10,minimumFractionDigits:1,maximumFractionDigits:1}).format(-12345678901e-1),n=t.startsWith("‎")||t.startsWith("؜"),r=n?t[1]:t[0],i=t[t.length-2],l=t.slice(n?2:1,-2);return{signBackwards:n,minusSign:r,decimal:i,digits:l=l[9]+l.slice(0,-1)}}function zl(e,t){var n=t.minusSign,r=t.decimal,i=t.digits;return e.replace(RegExp(n,"g"),"-").replace(RegExp("[".concat(r,"]"),"g"),".").replace(RegExp("[".concat(i,"]"),"g"),function(l){var s=i.indexOf(l);return s!==-1?s.toString():l})}var Cy=["format","groupDisplay","maximumIntegerDigits"];function fl(e,t){var n=t.format,r=t.groupDisplay,i=t.maximumIntegerDigits,l=Pl(t,Cy);if((i=i!==void 0?Number(i):void 0)!==void 0&&Number.isNaN(i))throw new RangeError("maximumIntegerDigits value is out of range.");var s=new Intl.NumberFormat(e,ci(ci({},l),{},{style:n==="percent"?"decimal":n,useGrouping:r})).resolvedOptions(),a=s.style,c=s.useGrouping;s.format=n==="percent"?"percent":a,s.groupDisplay=c;var u=i!==void 0&&i<s.minimumIntegerDigits;s.maximumIntegerDigits=u?s.minimumIntegerDigits:i;var f=s;return delete f.style,delete f.currencySign,delete f.useGrouping,delete f.minimumSignificantDigits,delete f.maximumSignificantDigits,delete f.compactDisplay,delete f.notation,delete f.numberingSystem,delete f.localeMatcher,delete f.roundingIncrement,delete f.roundingMode,delete f.roundingPriority,delete f.trailingZeroDisplay,s}var $y=["locales"];function bd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.locales,r=Pl(t,$y),i=ui(n),l=fl(n,r);return zo(e.toString(),{locales:n,options:r,localizedValues:i,resolvedOptions:l})}function wd(e,t){var n=ui(t);return zl(Il(wi(e,n),n),n).replace(/(.+)(-)$/,"$2$1").replace(/\.$/,"")}var xu,Py=["locales"],Iy=["locales"];function Eu(e,t){var n={minusSign:"-",decimal:".",digits:"\\d",signBackwards:!1},r=wi(e,t),i=wi(e.replace(",","."),n);return e=Il(r||i,r?t:n),e=zl(e,t)}var xd=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Dy(this,t),(n=My(this,t,[{init:function(i){var l=i.initialValue,s=i.controlled,a=r.locales,c=Pl(r,Py);if(!s&&l.length>0){var u=ui(a),f=fl(a,c),m=Eu(l,u);(m=m.replace(/(.+)(-)$/,"$2$1")).length>0&&(l=zo(m,{locales:a,options:c,localizedValues:u,resolvedOptions:f}))}return{value:l,options:{locales:a,options:c}}},tracking:function(i){var l=i.inputType,s=i.previousValue,a=i.previousOptions,c=i.addedValue,u=i.changeStart,f=i.changeEnd,m=r.locales,d=Pl(r,Iy),h=ui(a.locales),p=ui(m),g=fl(m,d),v=RegExp("^[".concat(p.minusSign,"]$")),_=RegExp("^[,".concat(p.decimal,"]$"));if(c=v.test(c)?c.replace(v,"-"):_.test(c)?c.replace(_,"."):Eu(c,p),l==="insert"&&!c)throw new Cr("The added value does not contain allowed characters.");var b=s.slice(0,u);b=wi(b,h),b=Il(b,h),b=zl(b,h);var w=s.slice(f);w=wi(w,h),w=Il(w,h);var y=b+c+(w=zl(w,h));if(y=y.replace(/[.](?=.*[.])/g,""),p.signBackwards)y=y.replace(/[-](?=.*[-.\d])/g,"");else{var O=y.search(/[-.\d]/);y=y.replace(/[-]/g,function(k,$){return O!==-1&&$>O?"":k})}y=y.replace(/(.+)(-)$/,"$2$1");var T=c==="-"&&u===f,M=s.includes(h.minusSign),z=y.includes("-");if(T&&M&&z&&(y=y.replace("-","")),!T||M||z||(y="-".concat(y)),/\..*0$/.test(y)){var P="([".concat(h.digits,"])([").concat(h.decimal,"])([").concat(h.digits,"]+)"),D=RegExp(P).exec(s);if(D!==null){var I,A=D[3],j=Number(D[5])+D[1].length+D[2].length,S=(I=fl(a.locales,a.options).minimumFractionDigits)!==null&&I!==void 0?I:0;u>=j&&f<j+(S||1)&&A.length<=(S||1)&&(y=y.replace(/0+$/g,""))}}var N=l==="deleteBackward"||l==="deleteForward";if(N&&s.includes(h.decimal)&&!y.includes(".")){var q,L="[".concat(h.digits[0],"]*[^").concat(h.decimal).concat(h.digits,"]*$"),E="[^".concat(h.digits[0],"]"),F=(q=RegExp(L).exec(s))===null||q===void 0?void 0:q[0].replace(RegExp(E,"g"),"").length;F!==void 0&&g.minimumFractionDigits!==void 0&&(F>g.minimumFractionDigits&&(F=g.minimumFractionDigits),y=y.replace(RegExp("0{0,".concat(F,"}$")),""))}var X="",B=y===""||y==="-"||/^-?(\.0*)?$/.test(y);N&&B||(X=zo(y,{locales:m,options:d,localizedValues:p,resolvedOptions:g}));var C=function(k){var $=k.localizedValues,R=k.previousLocalizedValues,Y=k.resolvedOptions,H=k.inputType,K=k.value,te=k.previousValue,le=k.addedValue,he=k.changeStart,Q=k.changeEnd;if(te.includes($.decimal)&&le==="."){var ne=K.indexOf($.decimal);if(ne!==-1){var G=ne+1;return{start:G,end:G}}}if(te.includes($.minusSign)&&le==="-"){var oe=K.indexOf($.minusSign);if(oe!==-1){var me=oe+($.signBackwards?0:1);return{start:me,end:me}}}if(H==="deleteBackward"||H==="deleteForward"){var ie=te.split(R.decimal),ge=ul(ie,1)[0];if(Q<=ge.length&&!RegExp("[".concat(R.digits.slice(1),"]")).test(ge)){var ce=ge.indexOf(R.digits[0]),fe=ge.lastIndexOf(R.digits[0]);if(ce!==-1&&fe!==-1){var ve=fe+1;if((he!==ce||Q!==ve)&&Q>ce&&Q<=ve)return{start:ce,end:ve}}}}for(var U=Y.maximumIntegerDigits!==void 0?Number(Y.maximumIntegerDigits):void 0,J=K.length,Z=0,pe=0,be=!1;pe<he;pe++){var Se=R.digits.includes(te[pe]),ut=te[pe]===R.decimal;!be&&(ut||Se&&te[pe]!==R.digits[0])&&(be=!0),be&&(ut||Se)&&(Z+=1)}if(H==="insert"){var kt=te.slice(0,he),nt=te.indexOf(R.decimal),Ie=kt.replace(RegExp("[^".concat(R.decimal).concat(R.digits,"]"),"g"),"").replace(RegExp("^".concat(R.digits[0],"+"),"g"),"").split(R.decimal),Ke=ul(Ie,2),St=Ke[0],an=Ke[1],Nn=an===void 0?"":an,Ut=nt!==-1&&Q<=nt?"\\.":"\\.(?=.*\\.)",ze=le.replace(RegExp("-|".concat(Ut),"g"),""),Ot=ze.includes("."),qt=ze.split("."),Ct=ul(qt,2),ft=Ct[0],Bn=Ct[1],qr=Bn===void 0?"":Bn;if(nt!==-1&&he>nt)if(Ot){Z-=1;var Fi=St+Nn;U!==void 0&&Fi.length>U&&(Z=U,St=Fi.slice(0,U))}else qr=ft,ft="";var Ss="[".concat(R.decimal).concat(R.digits.slice(1),"]");RegExp(Ss).test(kt)||(ft=ft.replace(/^0+/g,""));var Gn=U!==void 0?U-St.length:void 0;Z+=(ft.slice(0,Gn)+(Ot?".":"")+qr).replace(RegExp("[^\\.".concat($.decimal,"\\d").concat($.digits,"]+"),"g"),"").length}for(var Cn=0,pr=!1,Br=0;Cn<K.length;Cn++){var Kn=$.digits.includes(K[Cn]),Zn=K[Cn]===$.decimal;if(!pr&&(Zn||Kn&&K[Cn]!==$.digits[0])&&(pr=!0),pr&&Br>=Z){J=Cn;break}pr&&(Zn||Kn)&&(Br+=1)}if(H==="deleteForward"){var $n,gr="\\".concat($.minusSign),Os="^.{".concat(J,"}[^").concat($.decimal).concat($.digits,"]*[").concat(gr).concat($.decimal).concat($.digits,"]"),Gr=($n=RegExp(Os).exec(K))===null||$n===void 0?void 0:$n[0].length;Gr!==void 0&&(J=Gr-1)}else{var Ms,Mm=H==="deleteBackward"?"\\".concat($.minusSign):"",Dm="[".concat(Mm).concat($.decimal).concat($.digits,"][^").concat($.decimal).concat($.digits,"]*.{").concat(K.length-J,"}$"),uc=(Ms=RegExp(Dm).exec(K))===null||Ms===void 0?void 0:Ms.index;uc!==void 0&&(J=uc+1)}var Rm="[\\".concat($.minusSign).concat($.decimal).concat($.digits.slice(1),"]"),Tm="[\\".concat($.minusSign).concat($.decimal).concat($.digits,"][^").concat($.decimal).concat($.digits,"]*$"),Ds=K.search(RegExp(Rm)),Rs=K.search(RegExp(Tm));return Ds!==-1&&J<Ds?J=Ds:Rs!==-1&&J>Rs+1&&(J=Rs+1),{start:J,end:J}}({localizedValues:p,previousLocalizedValues:h,resolvedOptions:g,inputType:l,value:X,previousValue:s,addedValue:c,changeStart:u,changeEnd:f});return{value:X,selectionStart:C.start,selectionEnd:C.end,options:{locales:m,options:d}}}}])).format=function(i){return bd(i,r)},n.unformat=function(i){return wd(i,r.locales)},n}return Ny(t,Na),Ry(t)}();xu=xd,Object.defineProperty(xu.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"NumberFormat"});function zy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.locales,n=e.format,r=e.currency,i=e.currencyDisplay,l=e.unit,s=e.unitDisplay,a=e.signDisplay,c=e.groupDisplay,u=e.minimumIntegerDigits,f=e.maximumIntegerDigits,m=e.minimumFractionDigits,d=e.maximumFractionDigits,h=o.useRef(null),p=o.useRef({locales:t,format:n,currency:r,currencyDisplay:i,unit:l,unitDisplay:s,signDisplay:a,groupDisplay:c,minimumIntegerDigits:u,maximumIntegerDigits:f,minimumFractionDigits:m,maximumFractionDigits:d});return p.current.locales=t,p.current.format=n,p.current.currency=r,p.current.currencyDisplay=i,p.current.unit=l,p.current.unitDisplay=s,p.current.signDisplay=a,p.current.groupDisplay=c,p.current.minimumIntegerDigits=u,p.current.maximumIntegerDigits=f,p.current.minimumFractionDigits=m,p.current.maximumFractionDigits=d,o.useMemo(function(){return pd(h,new xd(p.current))},[])}const Ay=({ref:e,...t})=>{const n=zy({});return o.useImperativeHandle(e,()=>n.current),o.createElement(ds,{ref:n,...t})},Ly=Object.assign(Ay,{format:bd,unFormat:wd}),Fy="_wrapper_sdhhu_1",Yy="_option_sdhhu_8",jy="_container_sdhhu_18",Wy="_content_sdhhu_28",Vy="_hover_sdhhu_46",Hy="_selected_sdhhu_35",sr={wrapper:Fy,option:Yy,container:jy,content:Wy,"selected-icon":"_selected-icon_sdhhu_35",hover:Vy,selected:Hy},Uy=e=>{const t=o.useRef([]),[n,r]=o.useState(null),[i,l]=o.useState(()=>(e.selectedIndex||e.initialSelectedIndex)??null),[s,a]=o.useState(e.initialOpen),c=e.open??s,u=e.setOpen??a,f=Ql({open:c,onOpenChange:_=>{e.disabled||u(_)},whileElementsMounted:sa,middleware:[oa({padding:10}),df({apply({rects:_,elements:b}){Object.assign(b.floating.style,{top:"var(--numbers-8)",width:`${_.reference.width}px`,maxHeight:"var(--numbers-288)"})},padding:10})]}),m=f.context,d=fa(m,{event:"click",enabled:!e.disabled}),h=ts(m,{role:"listbox"}),p=Xl(m),g=og(m,{listRef:t,activeIndex:n,selectedIndex:i,onNavigate:r,loop:!0,nested:!0,virtual:!0,allowEscape:!0}),v=Jl([h,p,g,d]);return o.useMemo(()=>({open:c,setOpen:u,role:h,dismiss:p,listRef:t,activeIndex:n,setActiveIndex:r,selectedIndex:i,setSelectedIndex:l,floating:f,interactions:v,tabIndex:e.tabIndex,disabled:e.disabled,onSelect:e.onSelect,onBlur:e.onBlur,onFocus:e.onFocus}),[c,u,h,p,n,r,i,l,f,v,e.tabIndex,e.disabled,e.onSelect,e.onBlur,e.onFocus])},Ed=o.createContext({}),Ca=()=>{const e=o.useContext(Ed);if(e==null)throw new Error("Select components must be wrapped in <Select />");return e},qy=({children:e,...t})=>{const n=Uy(t);return o.useEffect(()=>{n.setSelectedIndex(t.selectedIndex)},[t.selectedIndex]),o.createElement(Ed.Provider,{value:n},e)},By=o.memo(e=>{const t=Ca(),n=t.interactions.getReferenceProps();return o.createElement("div",{className:sr.wrapper,tabIndex:t.tabIndex,ref:t.floating.refs.setReference,...n,onFocus:()=>{t.onFocus&&t.onFocus()},onBlur:()=>{t.onBlur&&t.onBlur()}},e.reference(t))}),Gy=o.memo(e=>{const t=Ca(),{isMounted:n,styles:r}=da(t.floating.context),i=e.options(t);return!t.open&&!n?null:o.createElement(Zl,null,o.createElement(ua,{context:t.floating.context},o.createElement(Ra,{...t.interactions.getFloatingProps(),ref:t.floating.refs.setFloating,style:{...r,...t.floating.floatingStyles,outline:"none",zIndex:999}},i.length?i:e.empty)))}),Ky=o.memo(e=>{const t=Ni(),n=Ca(),r=o.useMemo(()=>n.activeIndex===e.index,[n.activeIndex]),i=o.useMemo(()=>n.selectedIndex===e.index,[n.selectedIndex]);o.useEffect(()=>{n.setSelectedIndex(n.selectedIndex)},[n.selectedIndex]);const l=o.useMemo(()=>se(sr.container,{[sr.hover]:r,[sr.selected]:i}),[r,i]);return o.createElement("div",{id:t,role:"option",className:sr.option,tabIndex:e.index===n.activeIndex?n.activeIndex:-1,...n.interactions.getItemProps({ref(s){n.listRef.current[e.index]=s},onClick(s){n.setSelectedIndex(e.index),n.onSelect&&n.onSelect(e.index),e.onClick&&e.onClick(s)},onKeyDown(s){s.key==="Enter"&&(s.preventDefault(),n.setSelectedIndex(n.activeIndex),n.onSelect&&n.onSelect(n.activeIndex),e.onChange&&e.onChange(s)),s.key===" "&&(s.preventDefault(),n.setSelectedIndex(n.activeIndex),n.onSelect&&n.onSelect(n.activeIndex),e.onChange&&e.onChange(s))}})},o.createElement("div",{className:l},o.createElement("div",{className:sr.content},e.option(n)),i&&o.createElement("div",{className:sr["selected-icon"]},o.createElement(xe,{icon:"check-line"}))))}),Rt=Object.assign(qy,{Reference:By,Options:Gy,Option:Ky}),Zy=({options:e,optionKey:t,optionValue:n,...r})=>{const[i,l]=o.useState(!1),[s,a]=o.useState(""),c=s?e.filter(u=>u[n].toLowerCase().startsWith(s.toLowerCase())):[];return o.createElement(Rt,{open:i,setOpen:l},o.createElement(Rt.Reference,{reference:u=>o.createElement(ds,{...r,value:s,onChange:f=>{const m=f.target.value;a(m),m?(u.setActiveIndex(0),l(!0)):l(!1)},onKeyDown:f=>{f.key==="Enter"&&u.activeIndex!=null&&e[u.activeIndex]&&(a(e[u.activeIndex][n]),u.setActiveIndex(null),l(!1))}})}),o.createElement(Rt.Options,{empty:o.createElement(Ko,{leadIcon:o.createElement(xe,{icon:"filter-off-line"}),label:"Нет данных"}),options:u=>c.map((f,m)=>o.createElement(Rt.Option,{key:f[t],index:m,onClick:()=>{a(e[m][n]),u.setOpen(!1)},option:d=>o.createElement(Ko,{active:d.activeIndex===m,leadIcon:o.createElement(xe,{icon:"windy-fill"}),label:f.name,badge:f.role})}))}))},Xy="_wrapper_3hbe8_1",Qy="_focused_3hbe8_17",Jy="_content_3hbe8_24",e_="_input_3hbe8_31",t_="_destructive_3hbe8_66",n_="_disabled_3hbe8_81",In={wrapper:Xy,focused:Qy,content:Jy,input:e_,"size--medium":"_size--medium_3hbe8_53","size--extra-small":"_size--extra-small_3hbe8_59",destructive:t_,disabled:n_},r_=(e,t)=>{o.useEffect(()=>{e?.current&&(e.current.style.height="auto",e.current.style.height=`${e.current.scrollHeight}px`)},[e,t])},i_=({ref:e,size:t="md",target:n,...r})=>{const i=o.useRef(null),[l,s]=o.useState(r.defaultValue||r.value),[a,c]=o.useState(!1),u=o.useMemo(()=>se(In.wrapper,{[In.focused]:a},{[In["size--medium"]]:t==="md",[In["size--extra-small"]]:t==="xs"},{[In.disabled]:r.disabled},{[In.destructive]:n==="destructive"}),[a,t,n,r.disabled]);o.useImperativeHandle(e,()=>i.current,[i]),r_(i,l);const f=()=>{c(!0)},m=()=>{c(!1)};return o.createElement("div",{className:u},o.createElement("div",{className:In.content},o.createElement("textarea",{ref:i,...r,className:In.input,onFocus:f,onBlur:m,onInput:d=>s(d.target.value)})))},l_="_wrapper_asagy_1",s_="_label_asagy_8",o_="_caption_asagy_13",a_="_required_asagy_19",Ki={wrapper:l_,label:s_,caption:o_,required:a_},Ao=e=>o.createElement("div",{className:Ki.wrapper},o.createElement("div",{className:Ki.label},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.label))),e.caption&&o.createElement("div",{className:Ki.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,e.caption))),e.required&&o.createElement("div",{className:Ki.required},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,"*")))),c_="_wrapper_5yuk1_1",u_="_caption_5yuk1_18",Jn={wrapper:c_,"lead-icon":"_lead-icon_5yuk1_8",caption:u_,"state--default":"_state--default_5yuk1_23","state--info":"_state--info_5yuk1_26","state--success":"_state--success_5yuk1_29","state--destructive":"_state--destructive_5yuk1_32"},f_=({state:e="default",...t})=>{const n=o.useMemo(()=>se(Jn.wrapper,{[Jn["state--default"]]:e==="default",[Jn["state--info"]]:e==="info",[Jn["state--success"]]:e==="success",[Jn["state--destructive"]]:e==="destructive"}),[e]);return o.createElement("div",{className:n},t.leadIcon&&o.createElement("div",{className:Jn["lead-icon"]},t.leadIcon),o.createElement("div",{className:Jn.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,t.caption))))},d_="_wrapper_1171k_1",m_="_content_1171k_8",Gs={wrapper:d_,content:m_,"expand-icon":"_expand-icon_1171k_15"},h_=e=>o.createElement("div",{className:Gs.wrapper},o.createElement("div",{className:Gs.content},o.createElement(ue,{size:e.size==="lg"?"body-m":"body-s",weight:"medium"},o.createElement("p",null,e.children))),o.createElement("div",{className:Gs["expand-icon"]},e.isExpanded?o.createElement(xe,{icon:"subtract-line"}):o.createElement(xe,{icon:"add-line"}))),p_="_wrapper_1ihka_1",g_="_expanded_1ihka_21",v_="_aside_1ihka_30",y_="_content_1ihka_45",__="_description_1ihka_51",b_="_slot_1ihka_59",Bt={wrapper:p_,expanded:g_,aside:v_,"lead-icon":"_lead-icon_1ihka_35",content:y_,description:__,slot:b_,"size--large":"_size--large_1ihka_66","size--medium":"_size--medium_1ihka_69"},w_=({size:e="lg",...t})=>{const[n,r]=o.useState(()=>t.defaultState??!1),i=o.useMemo(()=>se(Bt.wrapper,{[Bt.expanded]:n},{[Bt["size--large"]]:e==="lg",[Bt["size--medium"]]:e==="md"}),[n,e]);o.useEffect(()=>{t.onState&&t.onState(n)},[n]),o.useEffect(()=>{t.expanded!==void 0&&r(t.expanded)},[t.expanded]);const l=()=>{r(!n)};return o.createElement("div",{className:i,tabIndex:t.tabIndex,onClick:l},t.leadIcon&&o.createElement("div",{className:Bt.aside},o.createElement("div",{className:Bt["lead-icon"]},t.leadIcon)),o.createElement("div",{className:Bt.content},o.createElement("div",{className:Bt.header},o.createElement(h_,{isExpanded:n,size:e},t.header)),n&&o.createElement(o.Fragment,null,t.description&&o.createElement("div",{className:Bt.description},o.createElement(ue,{size:e==="lg"?"body-s":"caption-l",weight:"regular"},o.createElement("p",null,t.description))),t.children&&o.createElement("div",{className:Bt.slot},t.children))))},x_="_wrapper_6mzzf_1",E_="_notification_6mzzf_8",k_="_content_6mzzf_15",S_="_icon_6mzzf_25",O_="_status_6mzzf_31",Ve={wrapper:x_,notification:E_,content:k_,icon:S_,status:O_,"size--2xl":"_size--2xl_6mzzf_38","size--xl":"_size--xl_6mzzf_45","size--lg":"_size--lg_6mzzf_52","size--md":"_size--md_6mzzf_59","size--sm":"_size--sm_6mzzf_66","size--xs":"_size--xs_6mzzf_73","color--gray":"_color--gray_6mzzf_81","color--green":"_color--green_6mzzf_87","color--blue":"_color--blue_6mzzf_93","color--orange":"_color--orange_6mzzf_99","color--red":"_color--red_6mzzf_105","color--purple":"_color--purple_6mzzf_111"},kd=({size:e="2xl",color:t="gray",...n})=>{const r=o.useMemo(()=>se(Ve.wrapper,{[Ve["size--2xl"]]:e==="2xl",[Ve["size--xl"]]:e==="xl",[Ve["size--lg"]]:e==="lg",[Ve["size--md"]]:e==="md",[Ve["size--sm"]]:e==="sm",[Ve["size--xs"]]:e==="xs"},{[Ve["color--gray"]]:t==="gray",[Ve["color--green"]]:t==="green",[Ve["color--blue"]]:t==="blue",[Ve["color--orange"]]:t==="orange",[Ve["color--red"]]:t==="red",[Ve["color--purple"]]:t==="purple"}),[e,t]);return o.createElement("div",{className:r},n.isNotification&&o.createElement("div",{className:Ve.notification},o.createElement(ao,{size:e,color:"red"})),o.createElement("div",{className:Ve.content},o.createElement("div",{className:Ve.icon},o.createElement(xe,{icon:"user-3-line"}))),n.isStatus&&o.createElement("div",{className:Ve.status},o.createElement(ao,{size:e,color:"green"})))},M_="_wrapper_sbe77_1",D_="_close_sbe77_27",R_="_label_sbe77_38",T_="_active_sbe77_46",N_="_disabled_sbe77_57",Pt={wrapper:M_,"lead-icon":"_lead-icon_sbe77_15",close:D_,label:R_,active:T_,disabled:N_,"size--lg":"_size--lg_sbe77_76","shape--rounded":"_shape--rounded_sbe77_80","size--md":"_size--md_sbe77_99","size--sm":"_size--sm_sbe77_122","shape--pill":"_shape--pill_sbe77_146"},C_=({size:e="md",shape:t="rounded",disabled:n,isActive:r=!1,label:i,leadIcon:l})=>{const s=o.useMemo(()=>se(Pt.wrapper,{[Pt["size--lg"]]:e==="lg",[Pt["size--md"]]:e==="md",[Pt["size--sm"]]:e==="sm"},{[Pt["shape--pill"]]:t==="pill",[Pt["shape--rounded"]]:t==="rounded"},{[Pt.active]:r},{[Pt.disabled]:n}),[e,t,n,r]);return o.createElement("div",{className:s},l&&o.createElement("div",{className:Pt["lead-icon"]},o.createElement(xe,{icon:l})),o.createElement("span",{className:Pt.label},i),r&&o.createElement("div",{className:Pt.close},o.createElement(xe,{icon:"close-line"})))},$_="_wrapper_llkuf_1",P_="_close_llkuf_27",I_="_label_llkuf_38",z_="_active_llkuf_46",A_="_disabled_llkuf_57",It={wrapper:$_,"lead-slot":"_lead-slot_llkuf_15",close:P_,label:I_,active:z_,disabled:A_,"size--lg":"_size--lg_llkuf_76","shape--rounded":"_shape--rounded_llkuf_80","size--md":"_size--md_llkuf_99","size--sm":"_size--sm_llkuf_122","shape--pill":"_shape--pill_llkuf_146"},L_=({size:e="md",shape:t="rounded",isActive:n=!1,disabled:r,label:i,leadslot:l})=>{const s=o.useMemo(()=>se(It.wrapper,{[It["size--lg"]]:e==="lg",[It["size--md"]]:e==="md",[It["size--sm"]]:e==="sm"},{[It["shape--pill"]]:t==="pill",[It["shape--rounded"]]:t==="rounded"},{[It.active]:n},{[It.disabled]:r}),[e,t,r,n]);return o.createElement("div",{className:s},l&&o.createElement("div",{className:It["lead-slot"]},l),o.createElement("span",{className:It.label},i),n&&o.createElement("div",{className:It.close},o.createElement(xe,{icon:"close-line"})))},F_=({type:e="icon",...t})=>{if(e==="icon")return o.createElement(C_,{...t});if(e==="slot")return o.createElement(L_,{...t})};function Lo(e,t){return Lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Lo(e,t)}function Y_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lo(e,t)}function Ks(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function Zs(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Zi(e){return e!==null&&e.length===1?e[0]:e.slice()}function Xi(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function er(e,t){return Fo(function(n,r){let i=n;return i<=r.min&&(i=r.min),i>=r.max&&(i=r.max),i}(e,t),t)}function Fo(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let Yo=function(e){function t(r){var i;(i=e.call(this,r)||this).onKeyUp=()=>{i.onEnd()},i.onMouseUp=()=>{i.onEnd(i.getMouseEventMap())},i.onTouchEnd=a=>{a.preventDefault(),i.onEnd(i.getTouchEventMap())},i.onBlur=()=>{i.setState({index:-1},i.onEnd(i.getKeyDownEventMap()))},i.onMouseMove=a=>{i.setState({pending:!0});const c=i.getMousePosition(a),u=i.getDiffPosition(c[0]),f=i.getValueFromPosition(u);i.move(f)},i.onTouchMove=a=>{if(a.touches.length>1)return;i.setState({pending:!0});const c=i.getTouchPosition(a);if(i.isScrolling===void 0){const m=c[0]-i.startPosition[0],d=c[1]-i.startPosition[1];i.isScrolling=Math.abs(d)>Math.abs(m)}if(i.isScrolling)return void i.setState({index:-1});const u=i.getDiffPosition(c[0]),f=i.getValueFromPosition(u);i.move(f)},i.onKeyDown=a=>{if(!(a.ctrlKey||a.shiftKey||a.altKey||a.metaKey))switch(i.setState({pending:!0}),a.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":a.preventDefault(),i.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":a.preventDefault(),i.moveUpByStep();break;case"Home":a.preventDefault(),i.move(i.props.min);break;case"End":a.preventDefault(),i.move(i.props.max);break;case"PageDown":a.preventDefault(),i.moveDownByStep(i.props.pageFn(i.props.step));break;case"PageUp":a.preventDefault(),i.moveUpByStep(i.props.pageFn(i.props.step))}},i.onSliderMouseDown=a=>{if(!i.props.disabled&&a.button!==2){if(i.setState({pending:!0}),!i.props.snapDragDisabled){const c=i.getMousePosition(a);i.forceValueFromPosition(c[0],u=>{i.start(u,c[0]),Xi(i.getMouseEventMap())})}Ks(a)}},i.onSliderClick=a=>{if(!i.props.disabled&&i.props.onSliderClick&&!i.hasMoved){const c=i.getMousePosition(a),u=er(i.calcValue(i.calcOffsetFromPosition(c[0])),i.props);i.props.onSliderClick(u)}},i.createOnKeyDown=a=>c=>{i.props.disabled||(i.start(a),Xi(i.getKeyDownEventMap()),Ks(c))},i.createOnMouseDown=a=>c=>{if(i.props.disabled||c.button===2)return;i.setState({pending:!0});const u=i.getMousePosition(c);i.start(a,u[0]),Xi(i.getMouseEventMap()),Ks(c)},i.createOnTouchStart=a=>c=>{if(i.props.disabled||c.touches.length>1)return;i.setState({pending:!0});const u=i.getTouchPosition(c);i.startPosition=u,i.isScrolling=void 0,i.start(a,u[0]),Xi(i.getTouchEventMap()),function(f){f.stopPropagation&&f.stopPropagation()}(c)},i.handleResize=()=>{const a=window.setTimeout(()=>{i.pendingResizeTimeouts.shift(),i.resize()},0);i.pendingResizeTimeouts.push(a)},i.renderThumb=(a,c)=>{const u=i.props.thumbClassName+" "+i.props.thumbClassName+"-"+c+" "+(i.state.index===c?i.props.thumbActiveClassName:""),f={ref:d=>{i["thumb"+c]=d},key:i.props.thumbClassName+"-"+c,className:u,style:a,onMouseDown:i.createOnMouseDown(c),onTouchStart:i.createOnTouchStart(c),onFocus:i.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":i.props.orientation,"aria-valuenow":i.state.value[c],"aria-valuemin":i.props.min,"aria-valuemax":i.props.max,"aria-label":Array.isArray(i.props.ariaLabel)?i.props.ariaLabel[c]:i.props.ariaLabel,"aria-labelledby":Array.isArray(i.props.ariaLabelledby)?i.props.ariaLabelledby[c]:i.props.ariaLabelledby,"aria-disabled":i.props.disabled},m={index:c,value:Zi(i.state.value),valueNow:i.state.value[c]};return i.props.ariaValuetext&&(f["aria-valuetext"]=typeof i.props.ariaValuetext=="string"?i.props.ariaValuetext:i.props.ariaValuetext(m)),i.props.renderThumb(f,m)},i.renderTrack=(a,c,u)=>{const f={key:i.props.trackClassName+"-"+a,className:i.props.trackClassName+" "+i.props.trackClassName+"-"+a,style:i.buildTrackStyle(c,i.state.upperBound-u)},m={index:a,value:Zi(i.state.value)};return i.props.renderTrack(f,m)};let l=Zs(r.value);l.length||(l=Zs(r.defaultValue)),i.pendingResizeTimeouts=[];const s=[];for(let a=0;a<l.length;a+=1)l[a]=er(l[a],r),s.push(a);return i.resizeObserver=null,i.resizeElementRef=o.createRef(),i.state={index:-1,upperBound:0,sliderLength:0,value:l,zIndices:s},i}Y_(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,i){const l=Zs(r.value);return l.length?i.pending?null:{value:l.map(s=>er(s,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(i){Object.keys(i).forEach(l=>{typeof document<"u"&&document.removeEventListener(l,i[l],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return Zi(this.state.value)},n.getClosestIndex=function(r){let i=Number.MAX_VALUE,l=-1;const{value:s}=this.state,a=s.length;for(let c=0;c<a;c+=1){const u=this.calcOffset(s[c]),f=Math.abs(r-u);f<i&&(i=f,l=c)}return l},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const i=r.touches[0];return[i["page"+this.axisKey()],i["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const i=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return er(this.state.startValue+i,this.props)},n.getDiffPosition=function(r){let i=r-this.state.startPosition;return this.props.invert&&(i*=-1),i},n.resize=function(){const{slider:r,thumb0:i}=this;if(!r||!i)return;const l=this.sizeKey(),s=r.getBoundingClientRect(),a=r[l],c=s[this.posMaxKey()],u=s[this.posMinKey()],f=i.getBoundingClientRect()[l.replace("client","").toLowerCase()],m=a-f,d=Math.abs(c-u);this.state.upperBound===m&&this.state.sliderLength===d&&this.state.thumbSize===f||this.setState({upperBound:m,sliderLength:d,thumbSize:f})},n.calcOffset=function(r){const i=this.props.max-this.props.min;return i===0?0:(r-this.props.min)/i*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:i}=this,l=i.getBoundingClientRect(),s=l[this.posMaxKey()],a=l[this.posMinKey()];let c=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:a));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},n.forceValueFromPosition=function(r,i){const l=this.calcOffsetFromPosition(r),s=this.getClosestIndex(l),a=er(this.calcValue(l),this.props),c=this.state.value.slice();c[s]=a;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{i(s),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,i){const l=this["thumb"+r];l&&l.focus();const{zIndices:s}=this.state;s.splice(s.indexOf(r),1),s.push(r),this.setState(a=>({startValue:a.value[r],startPosition:i!==void 0?i:a.startPosition,index:r,zIndices:s}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const i=this.state.value[this.state.index],l=er(this.props.invert&&this.props.orientation==="horizontal"?i-r:i+r,this.props);this.move(Math.min(l,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const i=this.state.value[this.state.index],l=er(this.props.invert&&this.props.orientation==="horizontal"?i+r:i-r,this.props);this.move(Math.max(l,this.props.min))},n.move=function(r){const i=this.state.value.slice(),{index:l}=this.state,{length:s}=i,a=i[l];if(r===a)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:f,minDistance:m}=this.props;if(!c){if(l>0){const d=i[l-1];r<d+m&&(r=d+m)}if(l<s-1){const d=i[l+1];r>d-m&&(r=d-m)}}i[l]=r,c&&s>1&&(r>a?(this.pushSucceeding(i,m,l),function(d,h,p,g){for(let v=0;v<d;v+=1){const _=g-v*p;h[d-1-v]>_&&(h[d-1-v]=_)}}(s,i,m,u)):r<a&&(this.pushPreceding(i,m,l),function(d,h,p,g){for(let v=0;v<d;v+=1){const _=g+v*p;h[v]<_&&(h[v]=_)}}(s,i,m,f))),this.setState({value:i},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,i,l){let s,a;for(s=l,a=r[s]+i;r[s+1]!==null&&a>r[s+1];s+=1,a=r[s]+i)r[s+1]=Fo(a,this.props)},n.pushPreceding=function(r,i,l){for(let s=l,a=r[s]-i;r[s-1]!==null&&a<r[s-1];s-=1,a=r[s]-i)r[s-1]=Fo(a,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](Zi(this.state.value),this.state.index)},n.buildThumbStyle=function(r,i){const l={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(i)+1};return l[this.posMinKey()]=r+"px",l},n.buildTrackStyle=function(r,i){const l={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return l[this.posMinKey()]=r,l[this.posMaxKey()]=i,l},n.buildMarkStyle=function(r){var i;return(i={position:"absolute"})[this.posMinKey()]=r,i},n.renderThumbs=function(r){const{length:i}=r,l=[];for(let a=0;a<i;a+=1)l[a]=this.buildThumbStyle(r[a],a);const s=[];for(let a=0;a<i;a+=1)s[a]=this.renderThumb(l[a],a);return s},n.renderTracks=function(r){const i=[],l=r.length-1;i.push(this.renderTrack(0,0,r[0]));for(let s=0;s<l;s+=1)i.push(this.renderTrack(s+1,r[s],r[s+1]));return i.push(this.renderTrack(l+1,r[l],this.state.upperBound)),i},n.renderMarks=function(){let{marks:r}=this.props;const i=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:i}).map((l,s)=>s):typeof r=="number"&&(r=Array.from({length:i}).map((l,s)=>s).filter(l=>l%r==0)),r.map(parseFloat).sort((l,s)=>l-s).map(l=>{const s=this.calcOffset(l),a={key:l,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(a)})},n.render=function(){const r=[],{value:i}=this.state,l=i.length;for(let u=0;u<l;u+=1)r[u]=this.calcOffset(i[u],u);const s=this.props.withTracks?this.renderTracks(r):null,a=this.renderThumbs(r),c=this.props.marks?this.renderMarks():null;return o.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,a,c)},t}(o.Component);Yo.displayName="ReactSlider",Yo.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>o.createElement("div",e),renderTrack:e=>o.createElement("div",e),renderMark:e=>o.createElement("span",e)};var j_=Yo;const W_="_wrapper_1qb3z_1",V_="_slider_1qb3z_11",H_="_thumb_1qb3z_15",U_="_track_1qb3z_28",Qi={wrapper:W_,slider:V_,thumb:H_,track:U_},q_=e=>o.createElement("div",{className:Qi.wrapper},o.createElement(j_,{className:Qi.slider,thumbClassName:Qi.thumb,trackClassName:Qi.track,...e})),B_="_wrapper_2g33r_1",G_="_input_2g33r_8",K_="_icon_2g33r_17",Zr={wrapper:B_,input:G_,icon:K_,"size--md":"_size--md_2g33r_67","size--sm":"_size--sm_2g33r_71"},Z_=({size:e="md",...t})=>{const n=o.useMemo(()=>se(Zr.icon,{[Zr["size--md"]]:e==="md",[Zr["size--sm"]]:e==="sm"}),[e]);return o.createElement("div",{className:Zr.wrapper},o.createElement("input",{...t,type:"checkbox",className:Zr.input}),o.createElement("span",{className:n}))},X_="_container_rhquy_1",Q_="_wrapper_rhquy_6",J_="_element_rhquy_13",eb="_content_rhquy_20",tb="_label_rhquy_27",nb="_caption_rhquy_31",fn={container:X_,wrapper:Q_,element:J_,content:eb,label:tb,caption:nb,"size--medium":"_size--medium_rhquy_36","with-label":"_with-label_rhquy_36","size--small":"_size--small_rhquy_42"},Sd=({size:e="md",label:t,caption:n,...r})=>{const i=o.useMemo(()=>se(fn.wrapper,{[fn["size--medium"]]:e==="md",[fn["size--small"]]:e==="sm"},{[fn["with-label"]]:t}),[e,t]);return o.createElement("div",{className:fn.container},o.createElement("label",{className:i},o.createElement("div",{className:fn.element},o.createElement(Z_,{...r,size:e})),t&&o.createElement("div",{className:fn.content},o.createElement("div",{className:fn.label},o.createElement(ue,{size:e==="md"?"body-s":"caption-l",weight:"medium"},o.createElement("p",null,t))),n&&o.createElement("div",{className:fn.caption},o.createElement(ue,{size:"caption-l",weight:"regular"},o.createElement("p",null,n))))))},rb="_wrapper_iejlm_1",Xs={wrapper:rb,"size--sm":"_size--sm_iejlm_12","size--md":"_size--md_iejlm_15"},ib=e=>{const t=o.useMemo(()=>se(Xs.wrapper,{[Xs["size--sm"]]:e.size==="sm",[Xs["size--md"]]:e.size==="md"}),[e.size]);return o.createElement("div",{className:t},e.children)},lb="_wrapper_jhl5m_1",sb="_icon_jhl5m_8",ob="_active_jhl5m_20",ab="_arrow_jhl5m_25",cb="_arrow2_jhl5m_30",ub="_label_jhl5m_35",fb="_caption_jhl5m_40",An={wrapper:lb,icon:sb,active:ob,arrow:ab,arrow2:cb,label:ub,caption:fb};function Od({size:e="sm",initialOpen:t=!1,placement:n="top",open:r,onOpenChange:i}){const[l,s]=x.useState(t),a=x.useRef(null),c=r??l,u=i??s,f=Ql({placement:n,open:c,onOpenChange:u,whileElementsMounted:sa,middleware:[ff(6),oa({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),Cp({padding:10}),$p({element:a})]}),m=f.context,d=Vp(m,{move:!1,enabled:r==null}),h=lg(m,{enabled:r==null}),p=Xl(m),g=ts(m,{role:"tooltip"}),v=Jl([d,h,p,g]);return x.useMemo(()=>({size:e,open:c,setOpen:u,arrowRef:a,...v,...f}),[c,u,v,f,e,a])}const Md=x.createContext(null),$a=()=>{const e=x.useContext(Md);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},db=({children:e,...t})=>{const n=Od(t);return x.createElement(Md.Provider,{value:n},e)},mb=x.forwardRef(function({children:t,...n},r){const i=$a(),l=aa([i.refs.setReference,r]);return x.createElement("div",{className:An.wrapper,ref:l,"data-state":i.open?"open":"closed",...i.getReferenceProps(n)},x.isValidElement(t)?x.cloneElement(t,{className:se({[An.active]:i.open})}):x.createElement("div",{className:se(An.icon,{[An.active]:i.open})},x.createElement(xe,{icon:"information-fill"})))}),hb=x.forwardRef(function({style:t,...n},r){const i=$a(),l=aa([i.refs.setFloating,r]),{isMounted:s,styles:a}=da(i.context);return!i.open&&!s?null:x.createElement(Zl,null,x.createElement("div",{ref:l,style:{...i.floatingStyles,...t,...a},...i.getFloatingProps(n)},x.createElement(ib,{size:i.size},n.children),x.createElement(Tc,{ref:i.arrowRef,context:i.context,className:An.arrow,width:14,height:4}),x.createElement(Tc,{ref:i.arrowRef,context:i.context,className:An.arrow2,width:14,height:4,style:{transform:"translateY(-1px)"}})))}),pb=e=>x.createElement("div",{className:An.label},x.createElement(ue,{size:"caption-m",weight:"semi-bold"},x.createElement("p",null,e.children))),gb=e=>x.createElement("div",{className:An.caption},x.createElement(ue,{size:"caption-m",weight:"medium"},x.createElement("p",null,e.children))),vb=Object.assign(db,{Trigger:mb,Content:Object.assign(hb,{Label:pb,Caption:gb})});//! moment.js
38
- //! version : 2.30.1
39
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
40
- //! license : MIT
41
- //! momentjs.com
42
- var Dd;function W(){return Dd.apply(null,arguments)}function yb(e){Dd=e}function jt(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function fr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pa(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ee(e,t))return!1;return!0}function st(e){return e===void 0}function Mn(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ii(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Rd(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Ln(e,t){for(var n in t)Ee(t,n)&&(e[n]=t[n]);return Ee(t,"toString")&&(e.toString=t.toString),Ee(t,"valueOf")&&(e.valueOf=t.valueOf),e}function sn(e,t,n,r){return Qd(e,t,n,r,!0).utc()}function _b(){return{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}}function de(e){return e._pf==null&&(e._pf=_b()),e._pf}var jo;Array.prototype.some?jo=Array.prototype.some:jo=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Ia(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=de(e),n=jo.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function ms(e){var t=sn(NaN);return e!=null?Ln(de(t),e):de(t).userInvalidated=!0,t}var ku=W.momentProperties=[],Qs=!1;function za(e,t){var n,r,i,l=ku.length;if(st(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),st(t._i)||(e._i=t._i),st(t._f)||(e._f=t._f),st(t._l)||(e._l=t._l),st(t._strict)||(e._strict=t._strict),st(t._tzm)||(e._tzm=t._tzm),st(t._isUTC)||(e._isUTC=t._isUTC),st(t._offset)||(e._offset=t._offset),st(t._pf)||(e._pf=de(t)),st(t._locale)||(e._locale=t._locale),l>0)for(n=0;n<l;n++)r=ku[n],i=t[r],st(i)||(e[r]=i);return e}function zi(e){za(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Qs===!1&&(Qs=!0,W.updateOffset(this),Qs=!1)}function Wt(e){return e instanceof zi||e!=null&&e._isAMomentObject!=null}function Td(e){W.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Tt(e,t){var n=!0;return Ln(function(){if(W.deprecationHandler!=null&&W.deprecationHandler(null,e),n){var r=[],i,l,s,a=arguments.length;for(l=0;l<a;l++){if(i="",typeof arguments[l]=="object"){i+=`
43
- [`+l+"] ";for(s in arguments[0])Ee(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[l];r.push(i)}Td(e+`
44
- Arguments: `+Array.prototype.slice.call(r).join("")+`
45
- `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Su={};function Nd(e,t){W.deprecationHandler!=null&&W.deprecationHandler(e,t),Su[e]||(Td(t),Su[e]=!0)}W.suppressDeprecationWarnings=!1;W.deprecationHandler=null;function on(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function bb(e){var t,n;for(n in e)Ee(e,n)&&(t=e[n],on(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Wo(e,t){var n=Ln({},e),r;for(r in t)Ee(t,r)&&(fr(e[r])&&fr(t[r])?(n[r]={},Ln(n[r],e[r]),Ln(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ee(e,r)&&!Ee(t,r)&&fr(e[r])&&(n[r]=Ln({},n[r]));return n}function Aa(e){e!=null&&this.set(e)}var Vo;Object.keys?Vo=Object.keys:Vo=function(e){var t,n=[];for(t in e)Ee(e,t)&&n.push(t);return n};var wb={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function xb(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return on(r)?r.call(t,n):r}function nn(e,t,n){var r=""+Math.abs(e),i=t-r.length,l=e>=0;return(l?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var La=/(\[[^\[]*\])|(\\)?([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,Ji=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Js={},$r={};function re(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&($r[e]=i),t&&($r[t[0]]=function(){return nn(i.apply(this,arguments),t[1],t[2])}),n&&($r[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Eb(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function kb(e){var t=e.match(La),n,r;for(n=0,r=t.length;n<r;n++)$r[t[n]]?t[n]=$r[t[n]]:t[n]=Eb(t[n]);return function(i){var l="",s;for(s=0;s<r;s++)l+=on(t[s])?t[s].call(i,e):t[s];return l}}function dl(e,t){return e.isValid()?(t=Cd(t,e.localeData()),Js[t]=Js[t]||kb(t),Js[t](e)):e.localeData().invalidDate()}function Cd(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(Ji.lastIndex=0;n>=0&&Ji.test(e);)e=e.replace(Ji,r),Ji.lastIndex=0,n-=1;return e}var Sb={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"};function Ob(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(La).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Mb="Invalid date";function Db(){return this._invalidDate}var Rb="%d",Tb=/\d{1,2}/;function Nb(e){return this._ordinal.replace("%d",e)}var Cb={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"};function $b(e,t,n,r){var i=this._relativeTime[n];return on(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Pb(e,t){var n=this._relativeTime[e>0?"future":"past"];return on(n)?n(t):n.replace(/%s/i,t)}var Ou={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 Nt(e){return typeof e=="string"?Ou[e]||Ou[e.toLowerCase()]:void 0}function Fa(e){var t={},n,r;for(r in e)Ee(e,r)&&(n=Nt(r),n&&(t[n]=e[r]));return t}var Ib={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};function zb(e){var t=[],n;for(n in e)Ee(e,n)&&t.push({unit:n,priority:Ib[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var $d=/\d/,Et=/\d\d/,Pd=/\d{3}/,Ya=/\d{4}/,hs=/[+-]?\d{6}/,$e=/\d\d?/,Id=/\d\d\d\d?/,zd=/\d\d\d\d\d\d?/,ps=/\d{1,3}/,ja=/\d{1,4}/,gs=/[+-]?\d{1,6}/,Vr=/\d+/,vs=/[+-]?\d+/,Ab=/Z|[+-]\d\d:?\d\d/gi,ys=/Z|[+-]\d\d(?::?\d\d)?/gi,Lb=/[+-]?\d+(\.\d{1,3})?/,Ai=/[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,Hr=/^[1-9]\d?/,Wa=/^([1-9]\d|\d)/,Al;Al={};function ee(e,t,n){Al[e]=on(t)?t:function(r,i){return r&&n?n:t}}function Fb(e,t){return Ee(Al,e)?Al[e](t._strict,t._locale):new RegExp(Yb(e))}function Yb(e){return kn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,l){return n||r||i||l}))}function kn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Dt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ye(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Dt(t)),n}var Ho={};function Me(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Mn(t)&&(r=function(l,s){s[t]=ye(l)}),i=e.length,n=0;n<i;n++)Ho[e[n]]=r}function Li(e,t){Me(e,function(n,r,i,l){i._w=i._w||{},t(n,i._w,i,l)})}function jb(e,t,n){t!=null&&Ee(Ho,e)&&Ho[e](t,n._a,n,e)}function _s(e){return e%4===0&&e%100!==0||e%400===0}var tt=0,bn=1,Qt=2,je=3,Lt=4,wn=5,ar=6,Wb=7,Vb=8;re("Y",0,0,function(){var e=this.year();return e<=9999?nn(e,4):"+"+e});re(0,["YY",2],0,function(){return this.year()%100});re(0,["YYYY",4],0,"year");re(0,["YYYYY",5],0,"year");re(0,["YYYYYY",6,!0],0,"year");ee("Y",vs);ee("YY",$e,Et);ee("YYYY",ja,Ya);ee("YYYYY",gs,hs);ee("YYYYYY",gs,hs);Me(["YYYYY","YYYYYY"],tt);Me("YYYY",function(e,t){t[tt]=e.length===2?W.parseTwoDigitYear(e):ye(e)});Me("YY",function(e,t){t[tt]=W.parseTwoDigitYear(e)});Me("Y",function(e,t){t[tt]=parseInt(e,10)});function fi(e){return _s(e)?366:365}W.parseTwoDigitYear=function(e){return ye(e)+(ye(e)>68?1900:2e3)};var Ad=Ur("FullYear",!0);function Hb(){return _s(this.year())}function Ur(e,t){return function(n){return n!=null?(Ld(this,e,n),W.updateOffset(this,t),this):xi(this,e)}}function xi(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ld(e,t,n){var r,i,l,s,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}l=n,s=e.month(),a=e.date(),a=a===29&&s===1&&!_s(l)?28:a,i?r.setUTCFullYear(l,s,a):r.setFullYear(l,s,a)}}function Ub(e){return e=Nt(e),on(this[e])?this[e]():this}function qb(e,t){if(typeof e=="object"){e=Fa(e);var n=zb(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Nt(e),on(this[e]))return this[e](t);return this}function Bb(e,t){return(e%t+t)%t}var Le;Array.prototype.indexOf?Le=Array.prototype.indexOf:Le=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Va(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Bb(t,12);return e+=(t-n)/12,n===1?_s(e)?29:28:31-n%7%2}re("M",["MM",2],"Mo",function(){return this.month()+1});re("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});re("MMMM",0,0,function(e){return this.localeData().months(this,e)});ee("M",$e,Hr);ee("MM",$e,Et);ee("MMM",function(e,t){return t.monthsShortRegex(e)});ee("MMMM",function(e,t){return t.monthsRegex(e)});Me(["M","MM"],function(e,t){t[bn]=ye(e)-1});Me(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[bn]=i:de(n).invalidMonth=e});var Gb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Fd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Yd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Kb=Ai,Zb=Ai;function Xb(e,t){return e?jt(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Yd).test(t)?"format":"standalone"][e.month()]:jt(this._months)?this._months:this._months.standalone}function Qb(e,t){return e?jt(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Yd.test(t)?"format":"standalone"][e.month()]:jt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Jb(e,t,n){var r,i,l,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)l=sn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(l,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(l,"").toLocaleLowerCase();return n?t==="MMM"?(i=Le.call(this._shortMonthsParse,s),i!==-1?i:null):(i=Le.call(this._longMonthsParse,s),i!==-1?i:null):t==="MMM"?(i=Le.call(this._shortMonthsParse,s),i!==-1?i:(i=Le.call(this._longMonthsParse,s),i!==-1?i:null)):(i=Le.call(this._longMonthsParse,s),i!==-1?i:(i=Le.call(this._shortMonthsParse,s),i!==-1?i:null))}function ew(e,t,n){var r,i,l;if(this._monthsParseExact)return Jb.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=sn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(l="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(l.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function jd(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ye(t);else if(t=e.localeData().monthsParse(t),!Mn(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,Va(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Wd(e){return e!=null?(jd(this,e),W.updateOffset(this,!0),this):xi(this,"Month")}function tw(){return Va(this.year(),this.month())}function nw(e){return this._monthsParseExact?(Ee(this,"_monthsRegex")||Vd.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ee(this,"_monthsShortRegex")||(this._monthsShortRegex=Kb),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function rw(e){return this._monthsParseExact?(Ee(this,"_monthsRegex")||Vd.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ee(this,"_monthsRegex")||(this._monthsRegex=Zb),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Vd(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,l,s,a;for(i=0;i<12;i++)l=sn([2e3,i]),s=kn(this.monthsShort(l,"")),a=kn(this.months(l,"")),t.push(s),n.push(a),r.push(a),r.push(s);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function iw(e,t,n,r,i,l,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,l,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,l,s),a}function Ei(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ll(e,t,n){var r=7+t-n,i=(7+Ei(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Hd(e,t,n,r,i){var l=(7+n-r)%7,s=Ll(e,r,i),a=1+7*(t-1)+l+s,c,u;return a<=0?(c=e-1,u=fi(c)+a):a>fi(e)?(c=e+1,u=a-fi(e)):(c=e,u=a),{year:c,dayOfYear:u}}function ki(e,t,n){var r=Ll(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,l,s;return i<1?(s=e.year()-1,l=i+Sn(s,t,n)):i>Sn(e.year(),t,n)?(l=i-Sn(e.year(),t,n),s=e.year()+1):(s=e.year(),l=i),{week:l,year:s}}function Sn(e,t,n){var r=Ll(e,t,n),i=Ll(e+1,t,n);return(fi(e)-r+i)/7}re("w",["ww",2],"wo","week");re("W",["WW",2],"Wo","isoWeek");ee("w",$e,Hr);ee("ww",$e,Et);ee("W",$e,Hr);ee("WW",$e,Et);Li(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ye(e)});function lw(e){return ki(e,this._week.dow,this._week.doy).week}var sw={dow:0,doy:6};function ow(){return this._week.dow}function aw(){return this._week.doy}function cw(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function uw(e){var t=ki(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}re("d",0,"do","day");re("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});re("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});re("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});re("e",0,0,"weekday");re("E",0,0,"isoWeekday");ee("d",$e);ee("e",$e);ee("E",$e);ee("dd",function(e,t){return t.weekdaysMinRegex(e)});ee("ddd",function(e,t){return t.weekdaysShortRegex(e)});ee("dddd",function(e,t){return t.weekdaysRegex(e)});Li(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:de(n).invalidWeekday=e});Li(["d","e","E"],function(e,t,n,r){t[r]=ye(e)});function fw(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function dw(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ha(e,t){return e.slice(t,7).concat(e.slice(0,t))}var mw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ud="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),hw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),pw=Ai,gw=Ai,vw=Ai;function yw(e,t){var n=jt(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ha(n,this._week.dow):e?n[e.day()]:n}function _w(e){return e===!0?Ha(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function bw(e){return e===!0?Ha(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ww(e,t,n){var r,i,l,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)l=sn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(l,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(l,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(l,"").toLocaleLowerCase();return n?t==="dddd"?(i=Le.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Le.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Le.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Le.call(this._weekdaysParse,s),i!==-1||(i=Le.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Le.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Le.call(this._shortWeekdaysParse,s),i!==-1||(i=Le.call(this._weekdaysParse,s),i!==-1)?i:(i=Le.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Le.call(this._minWeekdaysParse,s),i!==-1||(i=Le.call(this._weekdaysParse,s),i!==-1)?i:(i=Le.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function xw(e,t,n){var r,i,l;if(this._weekdaysParseExact)return ww.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=sn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(l="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(l.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ew(e){if(!this.isValid())return e!=null?this:NaN;var t=xi(this,"Day");return e!=null?(e=fw(e,this.localeData()),this.add(e-t,"d")):t}function kw(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Sw(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=dw(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ow(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||Ua.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ee(this,"_weekdaysRegex")||(this._weekdaysRegex=pw),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Mw(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||Ua.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ee(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=gw),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Dw(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||Ua.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ee(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vw),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ua(){function e(f,m){return m.length-f.length}var t=[],n=[],r=[],i=[],l,s,a,c,u;for(l=0;l<7;l++)s=sn([2e3,1]).day(l),a=kn(this.weekdaysMin(s,"")),c=kn(this.weekdaysShort(s,"")),u=kn(this.weekdays(s,"")),t.push(a),n.push(c),r.push(u),i.push(a),i.push(c),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function qa(){return this.hours()%12||12}function Rw(){return this.hours()||24}re("H",["HH",2],0,"hour");re("h",["hh",2],0,qa);re("k",["kk",2],0,Rw);re("hmm",0,0,function(){return""+qa.apply(this)+nn(this.minutes(),2)});re("hmmss",0,0,function(){return""+qa.apply(this)+nn(this.minutes(),2)+nn(this.seconds(),2)});re("Hmm",0,0,function(){return""+this.hours()+nn(this.minutes(),2)});re("Hmmss",0,0,function(){return""+this.hours()+nn(this.minutes(),2)+nn(this.seconds(),2)});function qd(e,t){re(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}qd("a",!0);qd("A",!1);function Bd(e,t){return t._meridiemParse}ee("a",Bd);ee("A",Bd);ee("H",$e,Wa);ee("h",$e,Hr);ee("k",$e,Hr);ee("HH",$e,Et);ee("hh",$e,Et);ee("kk",$e,Et);ee("hmm",Id);ee("hmmss",zd);ee("Hmm",Id);ee("Hmmss",zd);Me(["H","HH"],je);Me(["k","kk"],function(e,t,n){var r=ye(e);t[je]=r===24?0:r});Me(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Me(["h","hh"],function(e,t,n){t[je]=ye(e),de(n).bigHour=!0});Me("hmm",function(e,t,n){var r=e.length-2;t[je]=ye(e.substr(0,r)),t[Lt]=ye(e.substr(r)),de(n).bigHour=!0});Me("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[je]=ye(e.substr(0,r)),t[Lt]=ye(e.substr(r,2)),t[wn]=ye(e.substr(i)),de(n).bigHour=!0});Me("Hmm",function(e,t,n){var r=e.length-2;t[je]=ye(e.substr(0,r)),t[Lt]=ye(e.substr(r))});Me("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[je]=ye(e.substr(0,r)),t[Lt]=ye(e.substr(r,2)),t[wn]=ye(e.substr(i))});function Tw(e){return(e+"").toLowerCase().charAt(0)==="p"}var Nw=/[ap]\.?m?\.?/i,Cw=Ur("Hours",!0);function $w(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Gd={calendar:wb,longDateFormat:Sb,invalidDate:Mb,ordinal:Rb,dayOfMonthOrdinalParse:Tb,relativeTime:Cb,months:Gb,monthsShort:Fd,week:sw,weekdays:mw,weekdaysMin:hw,weekdaysShort:Ud,meridiemParse:Nw},Pe={},Xr={},Si;function Pw(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Mu(e){return e&&e.toLowerCase().replace("_","-")}function Iw(e){for(var t=0,n,r,i,l;t<e.length;){for(l=Mu(e[t]).split("-"),n=l.length,r=Mu(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=bs(l.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Pw(l,r)>=n-1)break;n--}t++}return Si}function zw(e){return!!(e&&e.match("^[^/\\\\]*$"))}function bs(e){var t=null,n;if(Pe[e]===void 0&&typeof module<"u"&&module&&module.exports&&zw(e))try{t=Si._abbr,n=require,n("./locale/"+e),Wn(t)}catch{Pe[e]=null}return Pe[e]}function Wn(e,t){var n;return e&&(st(t)?n=Dn(e):n=Ba(e,t),n?Si=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Si._abbr}function Ba(e,t){if(t!==null){var n,r=Gd;if(t.abbr=e,Pe[e]!=null)Nd("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."),r=Pe[e]._config;else if(t.parentLocale!=null)if(Pe[t.parentLocale]!=null)r=Pe[t.parentLocale]._config;else if(n=bs(t.parentLocale),n!=null)r=n._config;else return Xr[t.parentLocale]||(Xr[t.parentLocale]=[]),Xr[t.parentLocale].push({name:e,config:t}),null;return Pe[e]=new Aa(Wo(r,t)),Xr[e]&&Xr[e].forEach(function(i){Ba(i.name,i.config)}),Wn(e),Pe[e]}else return delete Pe[e],null}function Aw(e,t){if(t!=null){var n,r,i=Gd;Pe[e]!=null&&Pe[e].parentLocale!=null?Pe[e].set(Wo(Pe[e]._config,t)):(r=bs(e),r!=null&&(i=r._config),t=Wo(i,t),r==null&&(t.abbr=e),n=new Aa(t),n.parentLocale=Pe[e],Pe[e]=n),Wn(e)}else Pe[e]!=null&&(Pe[e].parentLocale!=null?(Pe[e]=Pe[e].parentLocale,e===Wn()&&Wn(e)):Pe[e]!=null&&delete Pe[e]);return Pe[e]}function Dn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Si;if(!jt(e)){if(t=bs(e),t)return t;e=[e]}return Iw(e)}function Lw(){return Vo(Pe)}function Ga(e){var t,n=e._a;return n&&de(e).overflow===-2&&(t=n[bn]<0||n[bn]>11?bn:n[Qt]<1||n[Qt]>Va(n[tt],n[bn])?Qt:n[je]<0||n[je]>24||n[je]===24&&(n[Lt]!==0||n[wn]!==0||n[ar]!==0)?je:n[Lt]<0||n[Lt]>59?Lt:n[wn]<0||n[wn]>59?wn:n[ar]<0||n[ar]>999?ar:-1,de(e)._overflowDayOfYear&&(t<tt||t>Qt)&&(t=Qt),de(e)._overflowWeeks&&t===-1&&(t=Wb),de(e)._overflowWeekday&&t===-1&&(t=Vb),de(e).overflow=t),e}var Fw=/^\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)?)?$/,Yw=/^\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)?)?$/,jw=/Z|[+-]\d\d(?::?\d\d)?/,el=[["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]],eo=[["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/]],Ww=/^\/?Date\((-?\d+)/i,Vw=/^(?:(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}))$/,Hw={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Kd(e){var t,n,r=e._i,i=Fw.exec(r)||Yw.exec(r),l,s,a,c,u=el.length,f=eo.length;if(i){for(de(e).iso=!0,t=0,n=u;t<n;t++)if(el[t][1].exec(i[1])){s=el[t][0],l=el[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(i[3]){for(t=0,n=f;t<n;t++)if(eo[t][1].exec(i[3])){a=(i[2]||" ")+eo[t][0];break}if(a==null){e._isValid=!1;return}}if(!l&&a!=null){e._isValid=!1;return}if(i[4])if(jw.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=s+(a||"")+(c||""),Za(e)}else e._isValid=!1}function Uw(e,t,n,r,i,l){var s=[qw(e),Fd.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return l&&s.push(parseInt(l,10)),s}function qw(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Bw(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Gw(e,t,n){if(e){var r=Ud.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return de(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Kw(e,t,n){if(e)return Hw[e];if(t)return 0;var r=parseInt(n,10),i=r%100,l=(r-i)/100;return l*60+i}function Zd(e){var t=Vw.exec(Bw(e._i)),n;if(t){if(n=Uw(t[4],t[3],t[2],t[5],t[6],t[7]),!Gw(t[1],n,e))return;e._a=n,e._tzm=Kw(t[8],t[9],t[10]),e._d=Ei.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),de(e).rfc2822=!0}else e._isValid=!1}function Zw(e){var t=Ww.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Kd(e),e._isValid===!1)delete e._isValid;else return;if(Zd(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:W.createFromInputFallback(e)}W.createFromInputFallback=Tt("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function wr(e,t,n){return e??t??n}function Xw(e){var t=new Date(W.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ka(e){var t,n,r=[],i,l,s;if(!e._d){for(i=Xw(e),e._w&&e._a[Qt]==null&&e._a[bn]==null&&Qw(e),e._dayOfYear!=null&&(s=wr(e._a[tt],i[tt]),(e._dayOfYear>fi(s)||e._dayOfYear===0)&&(de(e)._overflowDayOfYear=!0),n=Ei(s,0,e._dayOfYear),e._a[bn]=n.getUTCMonth(),e._a[Qt]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[je]===24&&e._a[Lt]===0&&e._a[wn]===0&&e._a[ar]===0&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?Ei:iw).apply(null,r),l=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==l&&(de(e).weekdayMismatch=!0)}}function Qw(e){var t,n,r,i,l,s,a,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(l=1,s=4,n=wr(t.GG,e._a[tt],ki(Ce(),1,4).year),r=wr(t.W,1),i=wr(t.E,1),(i<1||i>7)&&(c=!0)):(l=e._locale._week.dow,s=e._locale._week.doy,u=ki(Ce(),l,s),n=wr(t.gg,e._a[tt],u.year),r=wr(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+l,(t.e<0||t.e>6)&&(c=!0)):i=l),r<1||r>Sn(n,l,s)?de(e)._overflowWeeks=!0:c!=null?de(e)._overflowWeekday=!0:(a=Hd(n,r,i,l,s),e._a[tt]=a.year,e._dayOfYear=a.dayOfYear)}W.ISO_8601=function(){};W.RFC_2822=function(){};function Za(e){if(e._f===W.ISO_8601){Kd(e);return}if(e._f===W.RFC_2822){Zd(e);return}e._a=[],de(e).empty=!0;var t=""+e._i,n,r,i,l,s,a=t.length,c=0,u,f;for(i=Cd(e._f,e._locale).match(La)||[],f=i.length,n=0;n<f;n++)l=i[n],r=(t.match(Fb(l,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&de(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),c+=r.length),$r[l]?(r?de(e).empty=!1:de(e).unusedTokens.push(l),jb(l,r,e)):e._strict&&!r&&de(e).unusedTokens.push(l);de(e).charsLeftOver=a-c,t.length>0&&de(e).unusedInput.push(t),e._a[je]<=12&&de(e).bigHour===!0&&e._a[je]>0&&(de(e).bigHour=void 0),de(e).parsedDateParts=e._a.slice(0),de(e).meridiem=e._meridiem,e._a[je]=Jw(e._locale,e._a[je],e._meridiem),u=de(e).era,u!==null&&(e._a[tt]=e._locale.erasConvertYear(u,e._a[tt])),Ka(e),Ga(e)}function Jw(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function e0(e){var t,n,r,i,l,s,a=!1,c=e._f.length;if(c===0){de(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)l=0,s=!1,t=za({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Za(t),Ia(t)&&(s=!0),l+=de(t).charsLeftOver,l+=de(t).unusedTokens.length*10,de(t).score=l,a?l<r&&(r=l,n=t):(r==null||l<r||s)&&(r=l,n=t,s&&(a=!0));Ln(e,n||t)}function t0(e){if(!e._d){var t=Fa(e._i),n=t.day===void 0?t.date:t.day;e._a=Rd([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Ka(e)}}function n0(e){var t=new zi(Ga(Xd(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Xd(e){var t=e._i,n=e._f;return e._locale=e._locale||Dn(e._l),t===null||n===void 0&&t===""?ms({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Wt(t)?new zi(Ga(t)):(Ii(t)?e._d=t:jt(n)?e0(e):n?Za(e):r0(e),Ia(e)||(e._d=null),e))}function r0(e){var t=e._i;st(t)?e._d=new Date(W.now()):Ii(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Zw(e):jt(t)?(e._a=Rd(t.slice(0),function(n){return parseInt(n,10)}),Ka(e)):fr(t)?t0(e):Mn(t)?e._d=new Date(t):W.createFromInputFallback(e)}function Qd(e,t,n,r,i){var l={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(fr(e)&&Pa(e)||jt(e)&&e.length===0)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,n0(l)}function Ce(e,t,n,r){return Qd(e,t,n,r,!1)}var i0=Tt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ce.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ms()}),l0=Tt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ce.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ms()});function Jd(e,t){var n,r;if(t.length===1&&jt(t[0])&&(t=t[0]),!t.length)return Ce();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function s0(){var e=[].slice.call(arguments,0);return Jd("isBefore",e)}function o0(){var e=[].slice.call(arguments,0);return Jd("isAfter",e)}var a0=function(){return Date.now?Date.now():+new Date},Qr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function c0(e){var t,n=!1,r,i=Qr.length;for(t in e)if(Ee(e,t)&&!(Le.call(Qr,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Qr[r]]){if(n)return!1;parseFloat(e[Qr[r]])!==ye(e[Qr[r]])&&(n=!0)}return!0}function u0(){return this._isValid}function f0(){return Ht(NaN)}function ws(e){var t=Fa(e),n=t.year||0,r=t.quarter||0,i=t.month||0,l=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,c=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=c0(t),this._milliseconds=+f+u*1e3+c*6e4+a*1e3*60*60,this._days=+s+l*7,this._months=+i+r*3+n*12,this._data={},this._locale=Dn(),this._bubble()}function ml(e){return e instanceof ws}function Uo(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function d0(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),l=0,s;for(s=0;s<r;s++)ye(e[s])!==ye(t[s])&&l++;return l+i}function em(e,t){re(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+nn(~~(n/60),2)+t+nn(~~n%60,2)})}em("Z",":");em("ZZ","");ee("Z",ys);ee("ZZ",ys);Me(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Xa(ys,e)});var m0=/([\+\-]|\d\d)/gi;function Xa(e,t){var n=(t||"").match(e),r,i,l;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(m0)||["-",0,0],l=+(i[1]*60)+ye(i[2]),l===0?0:i[0]==="+"?l:-l)}function Qa(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Wt(e)||Ii(e)?e.valueOf():Ce(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),W.updateOffset(n,!1),n):Ce(e).local()}function qo(e){return-Math.round(e._d.getTimezoneOffset())}W.updateOffset=function(){};function h0(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Xa(ys,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=qo(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?rm(this,Ht(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,W.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:qo(this)}function p0(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function g0(e){return this.utcOffset(0,e)}function v0(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(qo(this),"m")),this}function y0(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Xa(Ab,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _0(e){return this.isValid()?(e=e?Ce(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function b0(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function w0(){if(!st(this._isDSTShifted))return this._isDSTShifted;var e={},t;return za(e,this),e=Xd(e),e._a?(t=e._isUTC?sn(e._a):Ce(e._a),this._isDSTShifted=this.isValid()&&d0(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function x0(){return this.isValid()?!this._isUTC:!1}function E0(){return this.isValid()?this._isUTC:!1}function tm(){return this.isValid()?this._isUTC&&this._offset===0:!1}var k0=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,S0=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var n=e,r=null,i,l,s;return ml(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Mn(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=k0.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:ye(r[Qt])*i,h:ye(r[je])*i,m:ye(r[Lt])*i,s:ye(r[wn])*i,ms:ye(Uo(r[ar]*1e3))*i}):(r=S0.exec(e))?(i=r[1]==="-"?-1:1,n={y:tr(r[2],i),M:tr(r[3],i),w:tr(r[4],i),d:tr(r[5],i),h:tr(r[6],i),m:tr(r[7],i),s:tr(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=O0(Ce(n.from),Ce(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),l=new ws(n),ml(e)&&Ee(e,"_locale")&&(l._locale=e._locale),ml(e)&&Ee(e,"_isValid")&&(l._isValid=e._isValid),l}Ht.fn=ws.prototype;Ht.invalid=f0;function tr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Du(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function O0(e,t){var n;return e.isValid()&&t.isValid()?(t=Qa(t,e),e.isBefore(t)?n=Du(e,t):(n=Du(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function nm(e,t){return function(n,r){var i,l;return r!==null&&!isNaN(+r)&&(Nd(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),l=n,n=r,r=l),i=Ht(n,r),rm(this,i,e),this}}function rm(e,t,n,r){var i=t._milliseconds,l=Uo(t._days),s=Uo(t._months);e.isValid()&&(r=r??!0,s&&jd(e,xi(e,"Month")+s*n),l&&Ld(e,"Date",xi(e,"Date")+l*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&W.updateOffset(e,l||s))}var M0=nm(1,"add"),D0=nm(-1,"subtract");function im(e){return typeof e=="string"||e instanceof String}function R0(e){return Wt(e)||Ii(e)||im(e)||Mn(e)||N0(e)||T0(e)||e===null||e===void 0}function T0(e){var t=fr(e)&&!Pa(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,l,s=r.length;for(i=0;i<s;i+=1)l=r[i],n=n||Ee(e,l);return t&&n}function N0(e){var t=jt(e),n=!1;return t&&(n=e.filter(function(r){return!Mn(r)&&im(e)}).length===0),t&&n}function C0(e){var t=fr(e)&&!Pa(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,l;for(i=0;i<r.length;i+=1)l=r[i],n=n||Ee(e,l);return t&&n}function $0(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function P0(e,t){arguments.length===1&&(arguments[0]?R0(arguments[0])?(e=arguments[0],t=void 0):C0(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ce(),r=Qa(n,this).startOf("day"),i=W.calendarFormat(this,r)||"sameElse",l=t&&(on(t[i])?t[i].call(this,n):t[i]);return this.format(l||this.localeData().calendar(i,this,Ce(n)))}function I0(){return new zi(this)}function z0(e,t){var n=Wt(e)?e:Ce(e);return this.isValid()&&n.isValid()?(t=Nt(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function A0(e,t){var n=Wt(e)?e:Ce(e);return this.isValid()&&n.isValid()?(t=Nt(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function L0(e,t,n,r){var i=Wt(e)?e:Ce(e),l=Wt(t)?t:Ce(t);return this.isValid()&&i.isValid()&&l.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(l,n):!this.isAfter(l,n))):!1}function F0(e,t){var n=Wt(e)?e:Ce(e),r;return this.isValid()&&n.isValid()?(t=Nt(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Y0(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function j0(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function W0(e,t,n){var r,i,l;if(!this.isValid())return NaN;if(r=Qa(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Nt(t),t){case"year":l=hl(this,r)/12;break;case"month":l=hl(this,r);break;case"quarter":l=hl(this,r)/3;break;case"second":l=(this-r)/1e3;break;case"minute":l=(this-r)/6e4;break;case"hour":l=(this-r)/36e5;break;case"day":l=(this-r-i)/864e5;break;case"week":l=(this-r-i)/6048e5;break;default:l=this-r}return n?l:Dt(l)}function hl(e,t){if(e.date()<t.date())return-hl(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,l;return t-r<0?(i=e.clone().add(n-1,"months"),l=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),l=(t-r)/(i-r)),-(n+l)||0}W.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";W.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function V0(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function H0(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?dl(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):on(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",dl(n,"Z")):dl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function U0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,l;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",l=t+'[")]',this.format(n+r+i+l)}function q0(e){e||(e=this.isUtc()?W.defaultFormatUtc:W.defaultFormat);var t=dl(this,e);return this.localeData().postformat(t)}function B0(e,t){return this.isValid()&&(Wt(e)&&e.isValid()||Ce(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function G0(e){return this.from(Ce(),e)}function K0(e,t){return this.isValid()&&(Wt(e)&&e.isValid()||Ce(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Z0(e){return this.to(Ce(),e)}function lm(e){var t;return e===void 0?this._locale._abbr:(t=Dn(e),t!=null&&(this._locale=t),this)}var sm=Tt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function om(){return this._locale}var Fl=1e3,Pr=60*Fl,Yl=60*Pr,am=(365*400+97)*24*Yl;function Ir(e,t){return(e%t+t)%t}function cm(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-am:new Date(e,t,n).valueOf()}function um(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-am:Date.UTC(e,t,n)}function X0(e){var t,n;if(e=Nt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?um:cm,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ir(t+(this._isUTC?0:this.utcOffset()*Pr),Yl);break;case"minute":t=this._d.valueOf(),t-=Ir(t,Pr);break;case"second":t=this._d.valueOf(),t-=Ir(t,Fl);break}return this._d.setTime(t),W.updateOffset(this,!0),this}function Q0(e){var t,n;if(e=Nt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?um:cm,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Yl-Ir(t+(this._isUTC?0:this.utcOffset()*Pr),Yl)-1;break;case"minute":t=this._d.valueOf(),t+=Pr-Ir(t,Pr)-1;break;case"second":t=this._d.valueOf(),t+=Fl-Ir(t,Fl)-1;break}return this._d.setTime(t),W.updateOffset(this,!0),this}function J0(){return this._d.valueOf()-(this._offset||0)*6e4}function ex(){return Math.floor(this.valueOf()/1e3)}function tx(){return new Date(this.valueOf())}function nx(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function rx(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ix(){return this.isValid()?this.toISOString():null}function lx(){return Ia(this)}function sx(){return Ln({},de(this))}function ox(){return de(this).overflow}function ax(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}re("N",0,0,"eraAbbr");re("NN",0,0,"eraAbbr");re("NNN",0,0,"eraAbbr");re("NNNN",0,0,"eraName");re("NNNNN",0,0,"eraNarrow");re("y",["y",1],"yo","eraYear");re("y",["yy",2],0,"eraYear");re("y",["yyy",3],0,"eraYear");re("y",["yyyy",4],0,"eraYear");ee("N",Ja);ee("NN",Ja);ee("NNN",Ja);ee("NNNN",_x);ee("NNNNN",bx);Me(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?de(n).era=i:de(n).invalidEra=e});ee("y",Vr);ee("yy",Vr);ee("yyy",Vr);ee("yyyy",Vr);ee("yo",wx);Me(["y","yy","yyy","yyyy"],tt);Me(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[tt]=n._locale.eraYearOrdinalParse(e,i):t[tt]=parseInt(e,10)});function cx(e,t){var n,r,i,l=this._eras||Dn("en")._eras;for(n=0,r=l.length;n<r;++n){switch(typeof l[n].since){case"string":i=W(l[n].since).startOf("day"),l[n].since=i.valueOf();break}switch(typeof l[n].until){case"undefined":l[n].until=1/0;break;case"string":i=W(l[n].until).startOf("day").valueOf(),l[n].until=i.valueOf();break}}return l}function ux(e,t,n){var r,i,l=this.eras(),s,a,c;for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(s=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),c=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(s===e)return l[r];break;case"NNNNN":if(c===e)return l[r];break}else if([s,a,c].indexOf(e)>=0)return l[r]}function fx(e,t){var n=e.since<=e.until?1:-1;return t===void 0?W(e.since).year():W(e.since).year()+(t-e.offset)*n}function dx(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function mx(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function hx(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function px(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-W(i[e].since).year())*n+i[e].offset;return this.year()}function gx(e){return Ee(this,"_erasNameRegex")||ec.call(this),e?this._erasNameRegex:this._erasRegex}function vx(e){return Ee(this,"_erasAbbrRegex")||ec.call(this),e?this._erasAbbrRegex:this._erasRegex}function yx(e){return Ee(this,"_erasNarrowRegex")||ec.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ja(e,t){return t.erasAbbrRegex(e)}function _x(e,t){return t.erasNameRegex(e)}function bx(e,t){return t.erasNarrowRegex(e)}function wx(e,t){return t._eraYearOrdinalRegex||Vr}function ec(){var e=[],t=[],n=[],r=[],i,l,s,a,c,u=this.eras();for(i=0,l=u.length;i<l;++i)s=kn(u[i].name),a=kn(u[i].abbr),c=kn(u[i].narrow),t.push(s),e.push(a),n.push(c),r.push(s),r.push(a),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}re(0,["gg",2],0,function(){return this.weekYear()%100});re(0,["GG",2],0,function(){return this.isoWeekYear()%100});function xs(e,t){re(0,[e,e.length],0,t)}xs("gggg","weekYear");xs("ggggg","weekYear");xs("GGGG","isoWeekYear");xs("GGGGG","isoWeekYear");ee("G",vs);ee("g",vs);ee("GG",$e,Et);ee("gg",$e,Et);ee("GGGG",ja,Ya);ee("gggg",ja,Ya);ee("GGGGG",gs,hs);ee("ggggg",gs,hs);Li(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=ye(e)});Li(["gg","GG"],function(e,t,n,r){t[r]=W.parseTwoDigitYear(e)});function xx(e){return fm.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ex(e){return fm.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function kx(){return Sn(this.year(),1,4)}function Sx(){return Sn(this.isoWeekYear(),1,4)}function Ox(){var e=this.localeData()._week;return Sn(this.year(),e.dow,e.doy)}function Mx(){var e=this.localeData()._week;return Sn(this.weekYear(),e.dow,e.doy)}function fm(e,t,n,r,i){var l;return e==null?ki(this,r,i).year:(l=Sn(e,r,i),t>l&&(t=l),Dx.call(this,e,t,n,r,i))}function Dx(e,t,n,r,i){var l=Hd(e,t,n,r,i),s=Ei(l.year,0,l.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}re("Q",0,"Qo","quarter");ee("Q",$d);Me("Q",function(e,t){t[bn]=(ye(e)-1)*3});function Rx(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}re("D",["DD",2],"Do","date");ee("D",$e,Hr);ee("DD",$e,Et);ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Me(["D","DD"],Qt);Me("Do",function(e,t){t[Qt]=ye(e.match($e)[0])});var dm=Ur("Date",!0);re("DDD",["DDDD",3],"DDDo","dayOfYear");ee("DDD",ps);ee("DDDD",Pd);Me(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ye(e)});function Tx(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}re("m",["mm",2],0,"minute");ee("m",$e,Wa);ee("mm",$e,Et);Me(["m","mm"],Lt);var Nx=Ur("Minutes",!1);re("s",["ss",2],0,"second");ee("s",$e,Wa);ee("ss",$e,Et);Me(["s","ss"],wn);var Cx=Ur("Seconds",!1);re("S",0,0,function(){return~~(this.millisecond()/100)});re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});re(0,["SSS",3],0,"millisecond");re(0,["SSSS",4],0,function(){return this.millisecond()*10});re(0,["SSSSS",5],0,function(){return this.millisecond()*100});re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ee("S",ps,$d);ee("SS",ps,Et);ee("SSS",ps,Pd);var Fn,mm;for(Fn="SSSS";Fn.length<=9;Fn+="S")ee(Fn,Vr);function $x(e,t){t[ar]=ye(("0."+e)*1e3)}for(Fn="S";Fn.length<=9;Fn+="S")Me(Fn,$x);mm=Ur("Milliseconds",!1);re("z",0,0,"zoneAbbr");re("zz",0,0,"zoneName");function Px(){return this._isUTC?"UTC":""}function Ix(){return this._isUTC?"Coordinated Universal Time":""}var V=zi.prototype;V.add=M0;V.calendar=P0;V.clone=I0;V.diff=W0;V.endOf=Q0;V.format=q0;V.from=B0;V.fromNow=G0;V.to=K0;V.toNow=Z0;V.get=Ub;V.invalidAt=ox;V.isAfter=z0;V.isBefore=A0;V.isBetween=L0;V.isSame=F0;V.isSameOrAfter=Y0;V.isSameOrBefore=j0;V.isValid=lx;V.lang=sm;V.locale=lm;V.localeData=om;V.max=l0;V.min=i0;V.parsingFlags=sx;V.set=qb;V.startOf=X0;V.subtract=D0;V.toArray=nx;V.toObject=rx;V.toDate=tx;V.toISOString=H0;V.inspect=U0;typeof Symbol<"u"&&Symbol.for!=null&&(V[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});V.toJSON=ix;V.toString=V0;V.unix=ex;V.valueOf=J0;V.creationData=ax;V.eraName=dx;V.eraNarrow=mx;V.eraAbbr=hx;V.eraYear=px;V.year=Ad;V.isLeapYear=Hb;V.weekYear=xx;V.isoWeekYear=Ex;V.quarter=V.quarters=Rx;V.month=Wd;V.daysInMonth=tw;V.week=V.weeks=cw;V.isoWeek=V.isoWeeks=uw;V.weeksInYear=Ox;V.weeksInWeekYear=Mx;V.isoWeeksInYear=kx;V.isoWeeksInISOWeekYear=Sx;V.date=dm;V.day=V.days=Ew;V.weekday=kw;V.isoWeekday=Sw;V.dayOfYear=Tx;V.hour=V.hours=Cw;V.minute=V.minutes=Nx;V.second=V.seconds=Cx;V.millisecond=V.milliseconds=mm;V.utcOffset=h0;V.utc=g0;V.local=v0;V.parseZone=y0;V.hasAlignedHourOffset=_0;V.isDST=b0;V.isLocal=x0;V.isUtcOffset=E0;V.isUtc=tm;V.isUTC=tm;V.zoneAbbr=Px;V.zoneName=Ix;V.dates=Tt("dates accessor is deprecated. Use date instead.",dm);V.months=Tt("months accessor is deprecated. Use month instead",Wd);V.years=Tt("years accessor is deprecated. Use year instead",Ad);V.zone=Tt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",p0);V.isDSTShifted=Tt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",w0);function zx(e){return Ce(e*1e3)}function Ax(){return Ce.apply(null,arguments).parseZone()}function hm(e){return e}var ke=Aa.prototype;ke.calendar=xb;ke.longDateFormat=Ob;ke.invalidDate=Db;ke.ordinal=Nb;ke.preparse=hm;ke.postformat=hm;ke.relativeTime=$b;ke.pastFuture=Pb;ke.set=bb;ke.eras=cx;ke.erasParse=ux;ke.erasConvertYear=fx;ke.erasAbbrRegex=vx;ke.erasNameRegex=gx;ke.erasNarrowRegex=yx;ke.months=Xb;ke.monthsShort=Qb;ke.monthsParse=ew;ke.monthsRegex=rw;ke.monthsShortRegex=nw;ke.week=lw;ke.firstDayOfYear=aw;ke.firstDayOfWeek=ow;ke.weekdays=yw;ke.weekdaysMin=bw;ke.weekdaysShort=_w;ke.weekdaysParse=xw;ke.weekdaysRegex=Ow;ke.weekdaysShortRegex=Mw;ke.weekdaysMinRegex=Dw;ke.isPM=Tw;ke.meridiem=$w;function jl(e,t,n,r){var i=Dn(),l=sn().set(r,t);return i[n](l,e)}function pm(e,t,n){if(Mn(e)&&(t=e,e=void 0),e=e||"",t!=null)return jl(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=jl(e,r,n,"month");return i}function tc(e,t,n,r){typeof e=="boolean"?(Mn(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Mn(t)&&(n=t,t=void 0),t=t||"");var i=Dn(),l=e?i._week.dow:0,s,a=[];if(n!=null)return jl(t,(n+l)%7,r,"day");for(s=0;s<7;s++)a[s]=jl(t,(s+l)%7,r,"day");return a}function Lx(e,t){return pm(e,t,"months")}function Fx(e,t){return pm(e,t,"monthsShort")}function Yx(e,t,n){return tc(e,t,n,"weekdays")}function jx(e,t,n){return tc(e,t,n,"weekdaysShort")}function Wx(e,t,n){return tc(e,t,n,"weekdaysMin")}Wn("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(e){var t=e%10,n=ye(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});W.lang=Tt("moment.lang is deprecated. Use moment.locale instead.",Wn);W.langData=Tt("moment.langData is deprecated. Use moment.localeData instead.",Dn);var dn=Math.abs;function Vx(){var e=this._data;return this._milliseconds=dn(this._milliseconds),this._days=dn(this._days),this._months=dn(this._months),e.milliseconds=dn(e.milliseconds),e.seconds=dn(e.seconds),e.minutes=dn(e.minutes),e.hours=dn(e.hours),e.months=dn(e.months),e.years=dn(e.years),this}function gm(e,t,n,r){var i=Ht(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Hx(e,t){return gm(this,e,t,1)}function Ux(e,t){return gm(this,e,t,-1)}function Ru(e){return e<0?Math.floor(e):Math.ceil(e)}function qx(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,l,s,a,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Ru(Bo(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Dt(e/1e3),r.seconds=i%60,l=Dt(i/60),r.minutes=l%60,s=Dt(l/60),r.hours=s%24,t+=Dt(s/24),c=Dt(vm(t)),n+=c,t-=Ru(Bo(c)),a=Dt(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function vm(e){return e*4800/146097}function Bo(e){return e*146097/4800}function Bx(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Nt(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+vm(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Bo(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Rn(e){return function(){return this.as(e)}}var ym=Rn("ms"),Gx=Rn("s"),Kx=Rn("m"),Zx=Rn("h"),Xx=Rn("d"),Qx=Rn("w"),Jx=Rn("M"),eE=Rn("Q"),tE=Rn("y"),nE=ym;function rE(){return Ht(this)}function iE(e){return e=Nt(e),this.isValid()?this[e+"s"]():NaN}function hr(e){return function(){return this.isValid()?this._data[e]:NaN}}var lE=hr("milliseconds"),sE=hr("seconds"),oE=hr("minutes"),aE=hr("hours"),cE=hr("days"),uE=hr("months"),fE=hr("years");function dE(){return Dt(this.days()/7)}var gn=Math.round,Mr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function mE(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function hE(e,t,n,r){var i=Ht(e).abs(),l=gn(i.as("s")),s=gn(i.as("m")),a=gn(i.as("h")),c=gn(i.as("d")),u=gn(i.as("M")),f=gn(i.as("w")),m=gn(i.as("y")),d=l<=n.ss&&["s",l]||l<n.s&&["ss",l]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(d=d||f<=1&&["w"]||f<n.w&&["ww",f]),d=d||u<=1&&["M"]||u<n.M&&["MM",u]||m<=1&&["y"]||["yy",m],d[2]=t,d[3]=+e>0,d[4]=r,mE.apply(null,d)}function pE(e){return e===void 0?gn:typeof e=="function"?(gn=e,!0):!1}function gE(e,t){return Mr[e]===void 0?!1:t===void 0?Mr[e]:(Mr[e]=t,e==="s"&&(Mr.ss=t-1),!0)}function vE(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Mr,i,l;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Mr,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),l=hE(this,!n,r,i),n&&(l=i.pastFuture(+this,l)),i.postformat(l)}var to=Math.abs;function _r(e){return(e>0)-(e<0)||+e}function Es(){if(!this.isValid())return this.localeData().invalidDate();var e=to(this._milliseconds)/1e3,t=to(this._days),n=to(this._months),r,i,l,s,a=this.asSeconds(),c,u,f,m;return a?(r=Dt(e/60),i=Dt(r/60),e%=60,r%=60,l=Dt(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=a<0?"-":"",u=_r(this._months)!==_r(a)?"-":"",f=_r(this._days)!==_r(a)?"-":"",m=_r(this._milliseconds)!==_r(a)?"-":"",c+"P"+(l?u+l+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(i||r||e?"T":"")+(i?m+i+"H":"")+(r?m+r+"M":"")+(e?m+s+"S":"")):"P0D"}var _e=ws.prototype;_e.isValid=u0;_e.abs=Vx;_e.add=Hx;_e.subtract=Ux;_e.as=Bx;_e.asMilliseconds=ym;_e.asSeconds=Gx;_e.asMinutes=Kx;_e.asHours=Zx;_e.asDays=Xx;_e.asWeeks=Qx;_e.asMonths=Jx;_e.asQuarters=eE;_e.asYears=tE;_e.valueOf=nE;_e._bubble=qx;_e.clone=rE;_e.get=iE;_e.milliseconds=lE;_e.seconds=sE;_e.minutes=oE;_e.hours=aE;_e.days=cE;_e.weeks=dE;_e.months=uE;_e.years=fE;_e.humanize=vE;_e.toISOString=Es;_e.toString=Es;_e.toJSON=Es;_e.locale=lm;_e.localeData=om;_e.toIsoString=Tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Es);_e.lang=sm;re("X",0,0,"unix");re("x",0,0,"valueOf");ee("x",vs);ee("X",Lb);Me("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Me("x",function(e,t,n){n._d=new Date(ye(e))});//! moment.js
46
- W.version="2.30.1";yb(Ce);W.fn=V;W.min=s0;W.max=o0;W.now=a0;W.utc=sn;W.unix=zx;W.months=Lx;W.isDate=Ii;W.locale=Wn;W.invalid=ms;W.duration=Ht;W.isMoment=Wt;W.weekdays=Yx;W.parseZone=Ax;W.localeData=Dn;W.isDuration=ml;W.monthsShort=Fx;W.weekdaysMin=Wx;W.defineLocale=Ba;W.updateLocale=Aw;W.locales=Lw;W.weekdaysShort=jx;W.normalizeUnits=Nt;W.relativeTimeRounding=pE;W.relativeTimeThreshold=gE;W.calendarFormat=$0;W.prototype=V;W.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"};const yE="_wrapper_txfvj_1",_E="_container_txfvj_9",Jr={wrapper:yE,container:_E,"is-active":"_is-active_txfvj_26","is-today":"_is-today_txfvj_31","is-weekday":"_is-weekday_txfvj_36"},bE=e=>{const t=o.useMemo(()=>se(Jr.container,{[Jr["is-active"]]:e.isActive,[Jr["is-today"]]:e.isToday,[Jr["is-weekday"]]:e.isWeekday}),[e.isActive,e.isToday,e.isWeekday]);return o.createElement("div",{className:Jr.wrapper,onClick:e.onClick},o.createElement("div",{className:t},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.children))))},wE="_wrapper_1g3yd_1",xE="_container_1g3yd_9",Tu={wrapper:wE,container:xE},EE=e=>o.createElement("div",{className:Tu.wrapper},o.createElement("div",{className:Tu.container},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.children)))),kE="_wrapper_a7pqs_1",Nu={wrapper:kE,"is-weekday":"_is-weekday_a7pqs_11"},SE=e=>{const t=o.useMemo(()=>se(Nu.wrapper,{[Nu["is-weekday"]]:e.isWeekday}),[e.isWeekday]);return o.createElement("div",{className:t},o.createElement(ue,{size:"caption-m",weight:"medium"},o.createElement("p",null,e.children)))},OE="_wrapper_sin0c_1",ME="_content_sin0c_8",DE="_controls_sin0c_15",RE="_icon_sin0c_22",ei={wrapper:OE,content:ME,controls:DE,icon:RE},TE=e=>o.createElement("div",{className:ei.wrapper},o.createElement("div",{className:ei.content},o.createElement(ue,{size:"caption-l",weight:"semi-bold"},o.createElement("p",null,e.month," ",e.year))),o.createElement("div",{className:ei.controls},o.createElement("div",{className:ei.icon,onClick:()=>e.onPrevMonthClick()},o.createElement(xe,{icon:"arrow-left-s-line"})),o.createElement("div",{className:ei.icon,onClick:()=>e.onNextMonthClick()},o.createElement(xe,{icon:"arrow-right-s-line"})))),NE="_wrapper_kio6j_1",CE="_button_kio6j_7",no={wrapper:NE,button:CE},$E=e=>o.createElement("div",{className:no.wrapper},o.createElement("div",{className:no.button},o.createElement(di,{type:"button",style:"secondary",size:"sm",onClick:()=>e.onCancel()},"Отмена")),o.createElement("div",{className:no.button},o.createElement(di,{type:"button",style:"primary",size:"sm",onClick:()=>e.onApply()},"Применить"))),PE="_wrapper_o2q3k_1",IE="_fields_o2q3k_7",zE="_field_o2q3k_7",AE="_control_o2q3k_22",ti={wrapper:PE,fields:IE,field:zE,control:AE},LE=e=>{const[t,n]=o.useState(()=>W(e.value).format("DD.MM.YYYY")),[r,i]=o.useState(()=>W(e.value).format("HH:mm")),[l,s]=o.useState(!1),[a,c]=o.useState(!1);o.useEffect(()=>{n(W(e.value).format("DD.MM.YYYY")),i(W(e.value).format("HH:mm"))},[e.value]);const u=d=>{const h=d.target.value,p=h.match(/(0[1-9]|[1-2][0-9]|3[0-1])\.(0[1-9]|1[0-2])\.(\d{4})/);s(!p),n(h)},f=d=>{const h=d.target.value,p=h.match(/([0-1][0-9]|2[0-3]):([0-5][0-9])/);c(!p),i(h)},m=()=>{const d=t.match(/(0[1-9]|[1-2][0-9]|3[0-1])\.(0[1-9]|1[0-2])\.(\d{4})/),h=r.match(/([0-1][0-9]|2[0-3]):([0-5][0-9])/);if(!d||!h)return;const p=W().year(Number(d[3])).month(Number(d[2])-1).date(Number(d[1])).hour(Number(h[1])).minute(Number(h[2])).second(0).millisecond(0).format();e.onChange(p)};return o.createElement("div",{className:ti.wrapper},o.createElement("div",{className:ti.fields},o.createElement("div",{className:ti.field},o.createElement(lr,null,o.createElement(lr.Label,null,o.createElement(Ao,{label:"Дата"})),o.createElement(lr.Content,null,o.createElement(Po,{size:"xs",mask:"__.__.____",replacement:{_:/\d/},value:t,target:l?"destructive":void 0,onChange:u})))),o.createElement("div",{className:ti.field},o.createElement(lr,null,o.createElement(lr.Label,null,o.createElement(Ao,{label:"Время"})),o.createElement(lr.Content,null,o.createElement(Po,{size:"xs",mask:"__:__",replacement:{_:/\d/},value:r,target:a?"destructive":void 0,onChange:f}))))),o.createElement("div",{className:ti.control},o.createElement($E,{onApply:()=>m(),onCancel:()=>{}})))},ro=e=>Object.create({type:e.type,isToday:e.isToday,isWeekday:e.isWeekday,value:e.value}),FE=(e,t)=>{const n=new Date(e,t,1),r=new Date(e,t+1,0),i=n.getDay(),l=r.getDate(),s=[],a=new Date(e,t,0).getDate(),c=(i+6)%7;for(let h=c;h>0;h--){const p=W().year(e).month(t-1).date(a-h+1).hour(0).minute(0).second(0).millisecond(0),g=p.day()===0||p.day()===6,v=ro({type:"prev-month",isToday:!1,isWeekday:g,value:p.format()});s.push(v)}const u=W();for(let h=1;h<=l;h++){const p=W().year(e).month(t).date(h).hour(0).minute(0).second(0).millisecond(0),g=u.year()===e&&u.month()===t&&u.date()===h,v=p.day()===0||p.day()===6,_=ro({type:"current-month",isToday:g,isWeekday:v,value:p.format()});s.push(_)}const f=7,m=s.length,d=(f-m%f)%f;for(let h=1;h<=d;h++){const p=W().year(e).month(t+1).date(h).hour(0).minute(0).second(0).millisecond(0),g=p.day()===0||p.day()===6,v=ro({type:"next-month",isToday:!1,isWeekday:g,value:p.format()});s.push(v)}return s},YE="_wrapper_1utnw_1",jE="_header_1utnw_9",WE="_weeks_1utnw_15",VE="_days_1utnw_22",HE="_control_1utnw_30",ni={wrapper:YE,header:jE,weeks:WE,days:VE,control:HE},UE=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],qE=["П","В","С","Ч","П","Сб","Вс"],BE=e=>W(e).year(),GE=e=>W(e).month(),_m=e=>{const[t,n]=o.useState(!1),[r,i]=o.useState(!1),[l,s]=o.useState(()=>W(e.value||e.defaultValue||new Date).format(e.format));o.useEffect(()=>{r&&(e.onChange&&e.onChange(l),i(!1))},[r]),o.useEffect(()=>{t&&s(W(e.value||new Date).format(e.format))},[e.value]),o.useEffect(()=>{n(!0)},[]);const a=o.useMemo(()=>FE(BE(l),GE(l)),[l]),c=d=>{const h=d-1;h<0?s(W(l).subtract(1,"year").month(11).format(e.format)):s(W(l).month(h).format(e.format))},u=d=>{const h=d+1;h>11?s(W(l).add(1,"year").month(0).format(e.format)):s(W(l).month(h).format(e.format))},f=d=>{s(W(l).date(W(d).date()).format(e.format)),i(!0)},m=d=>{s(d),i(!0)};return o.createElement("div",{className:ni.wrapper},o.createElement("div",{className:ni.header},o.createElement(TE,{year:W(l).year(),month:UE[W(l).month()],onPrevMonthClick:()=>c(W(l).month()),onNextMonthClick:()=>u(W(l).month())})),o.createElement("div",{className:ni.weeks},qE.map((d,h)=>o.createElement(SE,{key:h,isWeekday:h===5||h===6},d))),o.createElement("div",{className:ni.days},a.map((d,h)=>d.type==="prev-month"||d.type==="next-month"?o.createElement(EE,{key:h},W(d.value).format("DD")):o.createElement(bE,{key:h,isActive:W(l).date()===W(d.value).date(),isToday:d.isToday,isWeekday:d.isWeekday,onClick:()=>f(d.value)},W(d.value).format("DD")))),o.createElement("div",{className:ni.control},o.createElement(LE,{value:l,onChange:m})))},KE="_wrapper_1ryvq_1",ZE="_disabled_1ryvq_19",XE="_icon_1ryvq_32",QE="_value_1ryvq_40",JE="_outline_1ryvq_80",He={wrapper:KE,"left-action":"_left-action_1ryvq_14",disabled:ZE,"right-action":"_right-action_1ryvq_23",icon:XE,value:QE,"shape--pill":"_shape--pill_1ryvq_53","size--lg":"_size--lg_1ryvq_57","shape--rounded":"_shape--rounded_1ryvq_65","size--md":"_size--md_1ryvq_68",outline:JE},ek=({shape:e="rounded",size:t="lg",outline:n=!1,leftActionDisabled:r=!1,rightActionDisabled:i=!1,leftActionType:l="subtract",rightActionType:s="add",value:a=0,onLeftActionClick:c,onRightActionClick:u})=>{const f=o.useMemo(()=>se(He.wrapper,{[He["size--lg"]]:t==="lg",[He["size--md"]]:t==="md"},{[He["shape--pill"]]:e==="pill",[He["shape--rounded"]]:e==="rounded"},{[He.outline]:n}),[e,t,n]),m=o.useMemo(()=>se(He["left-action"],{[He.disabled]:r}),[r]),d=o.useMemo(()=>se(He["right-action"],{[He.disabled]:i}),[i]),h=()=>{r||c()},p=()=>{i||u()};return o.createElement("div",{className:f},o.createElement("div",{className:m,onClick:h},l==="add"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"add-line"})),l==="delete"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"delete-bin-line"})),l==="subtract"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"subtract-line"}))),o.createElement("div",{className:He.value},a),o.createElement("div",{className:d,onClick:p},s==="add"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"add-line"})),s==="delete"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"delete-bin-line"})),s==="subtract"&&o.createElement("div",{className:He.icon},o.createElement(xe,{icon:"subtract-line"}))))},tk="_wrapper_xatd6_1",nk="_label_xatd6_16",rk="_divider_xatd6_31",ik="_active_xatd6_58",Qe={wrapper:tk,"lead-icon":"_lead-icon_xatd6_8",label:nk,"tail-icon":"_tail-icon_xatd6_23",divider:rk,"size--sm":"_size--sm_xatd6_47","size--md":"_size--md_xatd6_52",active:ik},lk=({active:e=!1,size:t="sm",showDivider:n=!1,divider:r=">",...i})=>{const l=o.useMemo(()=>se(Qe["lead-icon"],{[Qe["size--sm"]]:t==="sm",[Qe["size--md"]]:t==="md"},{[Qe.active]:e}),[i.leadIcon,t,e]),s=o.useMemo(()=>se(Qe["tail-icon"],{[Qe["size--sm"]]:t==="sm",[Qe["size--md"]]:t==="md"},{[Qe.active]:e}),[i.leadIcon,t,e]),a=o.useMemo(()=>se(Qe.divider,{[Qe["size--sm"]]:t==="sm",[Qe["size--md"]]:t==="md"},{[Qe.active]:e}),[i.leadIcon,t,e]),c=o.useMemo(()=>se(Qe.label,{[Qe.active]:e}),[i.leadIcon,t,e]);return o.createElement("div",{className:Qe.wrapper},i.leadIcon&&o.createElement("div",{className:l},i.leadIcon),o.createElement("div",{className:Qe.label},t==="sm"&&o.createElement(ue,{size:"caption-m",weight:"semi-bold"},o.createElement("span",{className:c},i.label)),t==="md"&&o.createElement(ue,{size:"caption-l",weight:"semi-bold"},o.createElement("span",{className:c},i.label))),i.tailIcon&&o.createElement("div",{className:s},i.tailIcon),n&&o.createElement("div",{className:a},o.createElement(xe,{icon:"arrow-right-s-line"})))},sk="_wrapper_97p3o_1",ok="_aside_97p3o_14",ak="_icon_97p3o_20",ck="_content_97p3o_31",uk="_container_97p3o_38",fk="_title_97p3o_45",dk="_text_97p3o_50",mk="_close_97p3o_55",hk="_description_97p3o_72",pk="_control_97p3o_83",rt={wrapper:sk,aside:ok,icon:ak,content:ck,container:uk,title:fk,text:dk,close:mk,description:hk,control:pk,"style--info":"_style--info_97p3o_90","style--warning":"_style--warning_97p3o_93","style--success":"_style--success_97p3o_96","style--destructive":"_style--destructive_97p3o_99"},gk=({style:e="info",...t})=>{const n=o.useMemo(()=>se(rt.icon,{[rt["style--info"]]:e==="info",[rt["style--warning"]]:e==="warning",[rt["style--success"]]:e==="success",[rt["style--destructive"]]:e==="destructive"}),[e]),r=()=>{t.onClose&&t.onClose()};return o.createElement("div",{className:rt.wrapper},o.createElement("div",{className:rt.aside},o.createElement("div",{className:n},o.createElement(xe,{icon:"error-warning-fill"}))),o.createElement("div",{className:rt.content},o.createElement("div",{className:rt.container},o.createElement("div",{className:rt.title},o.createElement(ue,{size:"body-s",weight:"semi-bold"},o.createElement("p",{className:rt.text},t.title))),o.createElement("div",{className:rt.close,onClick:r},o.createElement(xe,{icon:"close-line"}))),t.description&&o.createElement("div",{className:rt.description},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:rt.text},t.description))),t.slot&&o.createElement("div",{className:rt.control},o.Children.map(t.slot,i=>o.isValidElement(i)?o.cloneElement(i):i))))},vk="_wrapper_p1kio_1",yk="_text_p1kio_10",Cu={wrapper:vk,text:yk},_k=e=>o.createElement("div",{className:Cu.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:Cu.text},e.title))),bk="_wrapper_4qihf_1",wk="_text_4qihf_9",xk="_disabled_4qihf_15",io={wrapper:bk,text:wk,disabled:xk},$u=e=>{const t=o.useMemo(()=>se(io.wrapper,{[io.disabled]:e.disabled}),[e.disabled]);return o.createElement("div",{className:t},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:io.text},e.title)))},Ek="_wrapper_7np8d_1",kk={wrapper:Ek},Sk=e=>o.createElement("div",{className:kk.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.title))),Ok="_wrapper_ti5lg_1",Mk="_focused_ti5lg_19",Dk="_clearable_ti5lg_28",Rk="_arrow_ti5lg_29",Tk="_content_ti5lg_64",Nk="_badge_ti5lg_72",Ck="_destructive_ti5lg_100",$k="_disabled_ti5lg_115",ht={wrapper:Ok,focused:Mk,"lead-icon":"_lead-icon_ti5lg_26","tail-icon":"_tail-icon_ti5lg_27",clearable:Dk,arrow:Rk,content:Tk,badge:Nk,"size--medium":"_size--medium_ti5lg_86","size--extra-small":"_size--extra-small_ti5lg_89","fix-height":"_fix-height_ti5lg_93",destructive:Ck,disabled:$k},nc=({children:e,fixHeight:t=!0,size:n="md",target:r,leadIcon:i,tailIcon:l,badge:s,isOpen:a,isFocused:c,isClearable:u,disabled:f,onClear:m})=>{const d=o.useMemo(()=>se(ht.wrapper,{[ht.focused]:c},{[ht["size--medium"]]:n==="md",[ht["size--extra-small"]]:n==="xs"},{[ht.disabled]:f},{[ht.destructive]:r==="destructive"},{[ht["fix-height"]]:t}),[c,n,r,f,t]),h=p=>{p.preventDefault(),p.stopPropagation(),m&&m()};return o.createElement("div",{className:d},i&&o.createElement("div",{className:ht["lead-icon"]},i),o.createElement("div",{className:ht.content},e),s&&o.createElement("div",{className:ht.badge},o.createElement(Oi,{size:"sm",color:"gray",label:s,disabled:f})),l&&o.createElement("div",{className:ht["tail-icon"]},l),u&&o.createElement("div",{className:ht.clearable,onClick:h},o.createElement(xe,{icon:"close-line"})),o.createElement("div",{className:ht.arrow},o.createElement(xe,{icon:a?"arrow-drop-up-line":"arrow-drop-down-line"})))},Pu=(e,t,n)=>e.findIndex(r=>r[t]===n),Pk=({value:e,placeholder:t,tabIndex:n,options:r,optionKey:i,optionValue:l,templateValue:s,templateOption:a,onBlur:c,onFocus:u,onChange:f,disabled:m,isClearable:d,...h})=>{const[p,g]=o.useState(!1),[v,_]=o.useState(!1),[b,w]=o.useState(!1),[y,O]=o.useState(e?Pu(r,i,e)??null:null),[T,M]=o.useState(y!=null?r[y]:void 0);return o.useEffect(()=>{p&&O(e?Pu(r,i,e)??null:null)},[e]),o.useEffect(()=>{p&&M(y!=null?r[y]:void 0)},[y]),o.useEffect(()=>{m||p&&(v?u&&u():c&&c())},[v]),o.useEffect(()=>{m||p&&f&&f(T?T[i]:void 0)},[T]),o.useEffect(()=>{m&&v&&_(!1)},[m]),o.useEffect(()=>{g(!0)},[]),o.createElement(Rt,{tabIndex:n,open:v,disabled:m,initialSelectedIndex:y,selectedIndex:y,setOpen:_,onSelect:O,onBlur:()=>w(!1),onFocus:()=>w(!0)},o.createElement(Rt.Reference,{reference:z=>o.createElement(nc,{...h,disabled:m,isFocused:b||v,isOpen:v,isClearable:y!==null&&d,onClear:()=>{m||(O(null),z.setSelectedIndex(null))}},T?s?s(T):o.createElement($u,{title:T[l],disabled:m}):o.createElement(Sk,{title:t??"Select..."}))}),o.createElement(Rt.Options,{empty:o.createElement(_k,{title:"Нет данных"}),options:z=>r.map((P,D)=>o.createElement(Rt.Option,{key:P[i],index:D,onClick:()=>{z.setOpen(!1)},onChange:()=>{z.setOpen(!1)},option:()=>a?a(P):o.createElement($u,{title:P[l]})}))}))},Ik="_wrapper_4qihf_1",zk="_text_4qihf_9",Ak="_disabled_4qihf_15",lo={wrapper:Ik,text:zk,disabled:Ak},bm=e=>{const t=o.useMemo(()=>se(lo.wrapper,{[lo.disabled]:e.disabled}),[e.disabled]);return o.createElement("div",{className:t},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:lo.text},e.title)))},Lk="_wrapper_pkazc_1",Fk="_dots_pkazc_9",Yk="_dot_pkazc_9",jk="_content_pkazc_30",tl={wrapper:Lk,dots:Fk,dot:Yk,content:jk},wm=e=>{let t=[];return t.push(o.createElement(Rt.Option,{index:e.index,onClick:e.onClick,onChange:e.onChange,option:()=>e.templateOption?e.templateOption(e.option):o.createElement("div",{className:tl.wrapper},e.deps>0&&o.createElement("div",{className:tl.dots},Array(e.deps).fill(null).map((n,r)=>o.createElement("div",{key:r,className:tl.dot}))),o.createElement("div",{className:tl.content},o.createElement(bm,{title:e.option[e.optionValue]})))})),e.option[e.accessor]&&(t=[...t,...e.option[e.accessor].map(n=>wm({...e,option:n,deps:e.deps+1}))]),o.Children.toArray(t)},Wk=e=>o.Children.toArray(e.options.map(t=>wm({deps:0,index:e.index,option:t,accessor:e.accessor,optionKey:e.optionKey,optionValue:e.optionValue,templateOption:e.templateOption}))),Vk="_wrapper_p1kio_1",Hk="_text_p1kio_10",Iu={wrapper:Vk,text:Hk},Uk=e=>o.createElement("div",{className:Iu.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:Iu.text},e.title))),qk="_wrapper_7np8d_1",Bk={wrapper:qk},Gk=e=>o.createElement("div",{className:Bk.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.title))),Go=e=>{let t=[];return e.forEach(n=>{t.push(n),n.children&&n.children.length>0&&(t=[...t,...Go(n.children)])}),t},zu=(e,t,n)=>e.findIndex(r=>r[t]===n),Kk=({value:e,placeholder:t,tabIndex:n,options:r,accessor:i,optionKey:l,optionValue:s,templateValue:a,templateOption:c,onBlur:u,onFocus:f,onChange:m,disabled:d,isClearable:h,...p})=>{const[g,v]=o.useState(()=>Go(r)),[_,b]=o.useState(!1),[w,y]=o.useState(!1),[O,T]=o.useState(!1),[M,z]=o.useState(e?zu(g,l,e)??null:null),[P,D]=o.useState(M!=null?g[M]:void 0);return o.useEffect(()=>{v(Go(r))},[r]),o.useEffect(()=>{_&&z(e?zu(g,l,e)??null:null)},[e]),o.useEffect(()=>{_&&D(M!=null?g[M]:void 0)},[M]),o.useEffect(()=>{d||_&&(w?f&&f():u&&u())},[w]),o.useEffect(()=>{d||_&&m&&m(P?P[l]:void 0)},[P]),o.useEffect(()=>{d&&w&&y(!1)},[d]),o.useEffect(()=>{b(!0)},[]),o.createElement(Rt,{tabIndex:n,open:w,disabled:d,initialSelectedIndex:M,selectedIndex:M,setOpen:y,onSelect:z,onBlur:()=>T(!1),onFocus:()=>T(!0)},o.createElement(Rt.Reference,{reference:I=>o.createElement(nc,{...p,disabled:d,isFocused:O||w,isOpen:w,isClearable:M!==null&&h,onClear:()=>{d||(z(null),I.setSelectedIndex(null))}},P?a?a(P):o.createElement(bm,{title:P[s],disabled:d}):o.createElement(Gk,{title:t??"Select..."}))}),o.createElement(Rt.Options,{empty:o.createElement(Uk,{title:"Нет данных"}),options:I=>{const A=Wk({index:0,accessor:i,options:r,optionKey:l,optionValue:s,templateOption:c});return o.Children.map(A,(j,S)=>o.isValidElement(j)?o.cloneElement(j,{index:S,key:S,onClick:()=>{I.setOpen(!1)},onChange:()=>{I.setOpen(!1)}}):null)}}))},Zk="_wrapper_4qihf_1",Xk="_text_4qihf_9",Qk="_disabled_4qihf_15",so={wrapper:Zk,text:Xk,disabled:Qk},Jk=e=>{const t=o.useMemo(()=>se(so.wrapper,{[so.disabled]:e.disabled}),[e.disabled]);return o.createElement("div",{className:t},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:so.text},e.title)))},e1="_wrapper_v5nak_1",t1="_text_v5nak_9",Au={wrapper:e1,text:t1},n1=e=>o.createElement("div",{className:Au.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:Au.text},e.title))),r1="_calendar_o3kr1_1",i1={calendar:r1},l1=({value:e,defaultValue:t,placeholder:n,tabIndex:r,templateValue:i,templateOption:l,onBlur:s,onFocus:a,onChange:c,disabled:u,isClearable:f,format:m="YYYY-MM-DDTHH:mm:ss.sssZ",displayFormat:d="DD.MM.YYYY",...h})=>{const[p,g]=o.useState(!1),[v,_]=o.useState(!1),[b,w]=o.useState(()=>e||t);o.useMemo(()=>{p&&w(e)},[e]),o.useEffect(()=>{u||p&&(v?a&&a():s&&s())},[v]),o.useEffect(()=>{u||p&&c&&c(b)},[b]),o.useEffect(()=>{u&&v&&_(!1)},[u]),o.useEffect(()=>{g(!0)},[]);const y=O=>{u||(w(O),_(!1))};return o.createElement(oi,{open:v,setOpen:_,disabled:u},o.createElement(oi.Reference,{reference:()=>o.createElement(nc,{...h,leadIcon:o.createElement(xe,{icon:"calendar-line"}),disabled:u,isFocused:v,isClearable:!!b&&f,onClear:()=>{u||c&&c(void 0)}},b?o.createElement(Jk,{disabled:u,title:W(b).format(d)}):o.createElement(n1,{title:n??"Select..."}))}),o.createElement(oi.Target,null,o.createElement("div",{className:i1.calendar},o.createElement(_m,{value:b,format:m,onChange:y}))))},s1="_wrapper_117v4_1",o1="_title_117v4_23",a1="_badge_117v4_33",c1="_active_117v4_64",pt={wrapper:s1,"lead-icon":"_lead-icon_117v4_12","tail-icon":"_tail-icon_117v4_13",title:o1,badge:a1,"shape--pill":"_shape--pill_117v4_40","shape--rounded":"_shape--rounded_117v4_43","size--lg":"_size--lg_117v4_47","size--md":"_size--md_117v4_50","size--sm":"_size--sm_117v4_53","style--primary":"_style--primary_117v4_57",active:c1,"style--secondary":"_style--secondary_117v4_72"},u1=({size:e="lg",style:t="primary",shape:n="rounded",...r})=>{const i=o.useMemo(()=>se(pt.wrapper,{[pt["size--lg"]]:e==="lg",[pt["size--md"]]:e==="md",[pt["size--sm"]]:e==="sm"},{[pt["style--primary"]]:t==="primary",[pt["style--secondary"]]:t==="secondary"},{[pt["shape--pill"]]:n==="pill",[pt["shape--rounded"]]:n==="rounded"},{[pt.active]:r.isActive}),[e,t,n,r.isActive]);return o.createElement("div",{className:i,role:"tab",onClick:()=>r.onClick&&r.onClick()},r.leadIcon&&o.createElement("div",{className:pt["lead-icon"]},r.leadIcon),o.createElement("div",{className:pt.title},o.createElement(ue,{size:e==="sm"?"caption-l":"body-s",weight:"semi-bold"},o.createElement("span",null,r.title))),r.badge&&o.createElement("div",{className:pt.badge},r.badge),r.tailIcon&&o.createElement("div",{className:pt["tail-icon"]},r.tailIcon))},f1="_wrapper_ajgt3_1",d1="_title_ajgt3_23",m1="_badge_ajgt3_32",h1="_active_ajgt3_55",Gt={wrapper:f1,"lead-icon":"_lead-icon_ajgt3_12","tail-icon":"_tail-icon_ajgt3_13",title:d1,badge:m1,"size--lg":"_size--lg_ajgt3_39","size--md":"_size--md_ajgt3_42","size--sm":"_size--sm_ajgt3_45","style--primary":"_style--primary_ajgt3_49",active:h1},p1=({size:e="lg",style:t="primary",...n})=>{const r=o.useMemo(()=>se(Gt.wrapper,{[Gt["size--lg"]]:e==="lg",[Gt["size--md"]]:e==="md",[Gt["size--sm"]]:e==="sm"},{[Gt["style--primary"]]:t==="primary"},{[Gt.active]:n.isActive}),[e,t,n.isActive]);return o.createElement("div",{className:r,role:"tab",onClick:()=>n.onClick&&n.onClick()},n.leadIcon&&o.createElement("div",{className:Gt["lead-icon"]},n.leadIcon),o.createElement("div",{className:Gt.title},o.createElement(ue,{size:e==="sm"?"caption-l":"body-s",weight:"semi-bold"},o.createElement("span",null,n.title))),n.badge&&o.createElement("div",{className:Gt.badge},n.badge),n.tailIcon&&o.createElement("div",{className:Gt["tail-icon"]},n.tailIcon))},g1="_wrapper_1ra1b_1",v1="_title_1ra1b_23",y1="_badge_1ra1b_33",_1="_active_1ra1b_64",Mt={wrapper:g1,"lead-icon":"_lead-icon_1ra1b_12","tail-icon":"_tail-icon_1ra1b_13",title:v1,badge:y1,"shape--pill":"_shape--pill_1ra1b_40","shape--rounded":"_shape--rounded_1ra1b_43","size--lg":"_size--lg_1ra1b_47","size--md":"_size--md_1ra1b_50","size--sm":"_size--sm_1ra1b_53","style--primary":"_style--primary_1ra1b_57",active:_1},b1=({size:e="lg",style:t="primary",shape:n="rounded",...r})=>{const i=o.useMemo(()=>se(Mt.wrapper,{[Mt["size--lg"]]:e==="lg",[Mt["size--md"]]:e==="md",[Mt["size--sm"]]:e==="sm"},{[Mt["style--primary"]]:t==="primary"},{[Mt["shape--pill"]]:n==="pill",[Mt["shape--rounded"]]:n==="rounded"},{[Mt.active]:r.isActive}),[e,t,n,r.isActive]);return o.createElement("div",{className:i,role:"tab",onClick:()=>r.onClick&&r.onClick()},r.leadIcon&&o.createElement("div",{className:Mt["lead-icon"]},r.leadIcon),o.createElement("div",{className:Mt.title},o.createElement(ue,{size:e==="sm"?"caption-l":"body-s",weight:"semi-bold"},o.createElement("span",null,r.title))),r.badge&&o.createElement("div",{className:Mt.badge},r.badge),r.tailIcon&&o.createElement("div",{className:Mt["tail-icon"]},r.tailIcon))},w1=({type:e,...t})=>e==="line"?o.createElement(p1,{...t,style:"primary",onClick:()=>t.onClick&&t.onClick(t.name)}):e==="segmented"?o.createElement(b1,{...t,style:"primary",onClick:()=>t.onClick&&t.onClick(t.name)}):o.createElement(u1,{...t,onClick:()=>t.onClick&&t.onClick(t.name)}),rc=o.createContext({}),x1=rc.Provider,E1="_menu_hxvfo_1",k1="_tab_hxvfo_7",br={menu:E1,tab:k1,"type--fill":"_type--fill_hxvfo_13","type--line":"_type--line_hxvfo_16","type--segmented":"_type--segmented_hxvfo_19","shape--pill":"_shape--pill_hxvfo_28"},S1=e=>{const{type:t,size:n,shape:r="rounded",setActiveTabName:i,activeTabName:l}=o.useContext(rc),s=c=>{i&&i(c)},a=o.useMemo(()=>se(br.menu,{[br["type--fill"]]:t==="fill",[br["type--line"]]:t==="line",[br["type--segmented"]]:t==="segmented"},{[br["shape--pill"]]:r==="pill"}),[t,r]);return o.createElement("div",{className:a},o.Children.map(e.children,c=>{if(o.isValidElement(c)){const u=c;return o.createElement("div",{className:br.tab,onClick:()=>s(u.props.name)},o.cloneElement(u,{size:n,type:t,shape:r,style:t==="fill"?"secondary":"primary",isActive:l===u.props.name}))}return c}))},O1=e=>{const{activeTabName:t}=o.useContext(rc);return console.log(123,t,e.name),t!==e.name?null:e.children},M1=e=>{const[t,n]=o.useState(e.defaultTabName);return o.createElement(x1,{value:{size:e.size??"lg",type:e.type??"fill",shape:e.shape??"rounded",activeTabName:t,setActiveTabName:r=>n(r),onClick(){}}},e.children)},D1=Object.assign(M1,{Menu:Object.assign(S1,{Tab:w1}),Content:O1}),R1="_wrapper_1xlwq_1",T1="_image_1xlwq_10",N1="_content_1xlwq_19",mn={wrapper:R1,image:T1,content:N1,"type--custom":"_type--custom_1xlwq_25","type--elevated":"_type--elevated_1xlwq_31","type--flat":"_type--flat_1xlwq_39","alignment--image-first":"_alignment--image-first_1xlwq_43","alignment--content-first":"_alignment--content-first_1xlwq_46","target--inverted":"_target--inverted_1xlwq_53"},C1=({type:e="custom",alignment:t="image-first",image:n,target:r,...i})=>{const l=o.useMemo(()=>se(mn.wrapper,{[mn["type--custom"]]:e==="custom",[mn["type--elevated"]]:e==="elevated",[mn["type--flat"]]:e==="flat"},{[mn["alignment--image-first"]]:t==="image-first",[mn["alignment--content-first"]]:t==="content-first"},{[mn["target--inverted"]]:r==="inverted"}),[e,t,r]);return o.createElement("div",{className:l},n&&e!=="custom"&&o.createElement("div",{className:mn.image},n),o.createElement("div",{className:mn.content},i.children))},$1="_wrapper_mef9n_1",P1={wrapper:$1},I1=e=>o.createElement("div",{className:P1.wrapper},e.children),z1="_wrapper_7bb8i_1",A1={wrapper:z1},L1=e=>o.Children.map(e.children,t=>{if(o.isValidElement(t)){const n=t;return o.cloneElement(n,{className:se(A1.wrapper,n.props.className)})}return t}),F1="_spin_1uson_1",Y1={spin:F1},j1=()=>null,W1=e=>o.Children.map(e.children,t=>{if(o.isValidElement(t)){const n=t;return o.cloneElement(n,{className:se(Y1.spin,n.props.className)})}return t}),ic=Object.assign(j1,{Spin:W1}),V1="_wrapper_12jcd_1",H1={wrapper:V1},U1=()=>o.createElement(ic.Spin,null,o.createElement("span",{className:H1.wrapper},o.createElement(xe,{icon:"loader-4-fill"}))),q1="_wrapper_j7cta_1",B1="_line_j7cta_8",G1="_left_j7cta_16",K1="_center_j7cta_24",Z1="_text_j7cta_32",it={wrapper:q1,line:B1,left:G1,center:K1,text:Z1},xm=e=>{switch(e.type){case"label-left":return o.createElement("div",{className:it.wrapper},o.createElement("div",{className:it.left},o.createElement(ue,{size:"caption-m",weight:"semi-bold"},o.createElement("span",{className:it.text},e.label))),o.createElement("div",{className:it.line}));case"label-center":return o.createElement("div",{className:it.wrapper},o.createElement("div",{className:it.line}),o.createElement("div",{className:it.center},o.createElement(ue,{size:"caption-m",weight:"semi-bold"},o.createElement("span",{className:it.text},e.label))),o.createElement("div",{className:it.line}));case"action-center":return o.createElement("div",{className:it.wrapper},o.createElement("div",{className:it.line}),o.createElement("div",{className:it.center},o.createElement(di,{style:"secondary",size:"xs"},e.actionLabel)),o.createElement("div",{className:it.line}));default:return o.createElement("div",{className:it.wrapper},o.createElement("div",{className:it.line}))}},X1="_wrapper_rcrvu_1",Q1="_active_rcrvu_15",J1="_content_rcrvu_37",eS="_caption_rcrvu_45",tS="_badge_rcrvu_52",nS="_spinner_rcrvu_59",Kt={wrapper:X1,active:Q1,"lead-icon":"_lead-icon_rcrvu_20","tail-icon":"_tail-icon_rcrvu_21",content:J1,caption:eS,badge:tS,spinner:nS},rS=e=>{const t=o.useMemo(()=>se(Kt.wrapper,{[Kt.active]:e.isActive}),[e.isActive]);return o.createElement("div",{className:t},e.leadIcon&&o.createElement("div",{className:Kt["lead-icon"]},o.createElement(xe,{icon:e.leadIcon})),o.createElement("div",{className:Kt.content},o.createElement("div",{className:Kt.caption},o.createElement(ue,{size:"caption-l",weight:"semi-bold"},o.createElement("p",null,e.caption))),e.badge&&o.createElement("div",{className:Kt.badge},o.cloneElement(e.badge,{size:"xs",stroke:!0,color:"orange"}))),e.isPending?o.createElement(ic.Spin,null,o.createElement("div",{className:se(Kt["tail-icon"],Kt.spinner)},o.createElement(xe,{icon:"loader-4-line"}))):e.tailIcon&&o.createElement("div",{className:se(Kt["tail-icon"],Kt.spinner)},e.tailIcon))},iS="_wrapper_9s8z5_1",lS="_active_9s8z5_11",sS="_label_9s8z5_28",oS="_text_9s8z5_36",aS="_badge_9s8z5_42",nr={wrapper:iS,active:lS,"lead-icon":"_lead-icon_9s8z5_15",label:sS,text:oS,badge:aS},Ko=e=>{const t=o.useMemo(()=>se(nr.wrapper,{[nr.active]:e.active}),[e.active]);return o.createElement("div",{className:t},e.leadIcon&&o.createElement("div",{className:nr["lead-icon"]},e.leadIcon),o.createElement("div",{className:nr.label},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:nr.text},e.label))),e.badge&&o.createElement("div",{className:nr.badge},o.createElement(Oi,{color:"gray",label:e.badge,size:"xs"})),e.toggle!==void 0&&o.createElement("div",{className:nr.badge},o.createElement(Sd,{size:"sm",checked:e.toggle})))},cS="_wrapper_thc1p_1",uS="_content_thc1p_8",fS="_text_thc1p_13",dS="_badge_thc1p_20",nl={wrapper:cS,content:uS,text:fS,badge:dS},mS=e=>o.createElement("div",{className:nl.wrapper},o.createElement("div",{className:nl.content},o.createElement(ue,{size:"caption-l",weight:"semi-bold"},o.createElement("p",{className:nl.text},e.children))),e.badge&&o.createElement("div",{className:nl.badge},o.createElement(Oi,{size:"xs",color:"purple",label:e.badge}))),hS="_wrapper_1lgs6_1",pS="_avatar_1lgs6_9",gS="_content_1lgs6_16",vS="_name_1lgs6_25",yS="_caption_1lgs6_31",ri={wrapper:hS,avatar:pS,content:gS,name:vS,caption:yS},_S=e=>o.createElement("div",{className:ri.wrapper},o.createElement("div",{className:ri.avatar},o.createElement(kd,{size:"sm",color:"orange"})),o.createElement("div",{className:ri.content},o.createElement("div",{className:ri.name},o.createElement(mS,{badge:e.badge},e.name)),e.caption&&o.createElement("div",{className:ri.caption},o.createElement(ue,{size:"caption-s",weight:"medium"},o.createElement("p",null,e.caption))))),bS="_wrapper_1srq9_1",wS="_top_1srq9_7",xS="_middle_1srq9_13",ES="_bottom_1srq9_19",kS="_block_1srq9_26",SS="_divider_1srq9_35",OS="_additional_1srq9_42",MS="_cell_1srq9_50",Tn={wrapper:bS,top:wS,middle:xS,bottom:ES,block:kS,divider:SS,additional:OS,cell:MS,"sub-cells":"_sub-cells_1srq9_57"},DS=e=>o.createElement("div",{className:Tn.wrapper},e.children),RS=e=>o.createElement("div",{className:Tn.top},e.children),TS=e=>o.createElement("div",{className:Tn.middle},e.children),NS=e=>o.createElement("div",{className:Tn.bottom},e.children),CS=e=>o.createElement("div",{className:Tn.cell},e.children),$S=e=>o.createElement("div",{className:Tn["sub-cells"]},e.children),PS=e=>o.createElement("div",{className:Tn.additional},o.createElement(ue,{size:"caption-m",weight:"semi-bold"},o.createElement("p",null,e.children))),IS=e=>o.createElement("div",{className:Tn.block},e.children),zS=()=>o.createElement("div",{className:Tn.divider},o.createElement(xm,null)),AS=Object.assign(DS,{Top:RS,Middle:TS,Bottom:NS,Divider:zS,Cell:CS,SubCells:$S,Additional:PS,Block:IS}),LS="_wrapper_1sc1f_1",FS="_overlay_1sc1f_14",YS="_close_1sc1f_23",lc={wrapper:LS,overlay:FS,close:YS};function jS({initialOpen:e=!1,open:t,onOpen:n,onClose:r}={}){const i=t??e,l=Ql({open:i,onOpenChange:()=>{r&&r()}}),s=l.context,a=fa(s,{enabled:t===null}),c=Xl(s,{outsidePressEvent:"mousedown"}),u=ts(s),f=Jl([a,c,u]);return o.useEffect(()=>{n&&i&&n()},[i]),o.useMemo(()=>({open:i,onOpen:n,onClose:r,...f,...l}),[i,n,r,f,l])}const Em=o.createContext(null),sc=()=>{const e=o.useContext(Em);if(e==null)throw new Error("Dialog components must be wrapped in <Dialog />");return e},WS=({children:e,...t})=>{const n=jS(t);return o.createElement(Em.Provider,{value:n},e)},VS=o.forwardRef(function(t,n){const{context:r,...i}=sc(),l=aa([i.refs.setFloating,n]);return r.open?o.createElement(Zl,null,o.createElement(eg,{className:lc.overlay,lockScroll:!0},o.createElement(ua,{context:r},o.createElement("div",{ref:l,...i.getFloatingProps(t)},t.children)))):null}),HS=o.forwardRef(function(t,n){const{onClose:r,context:{onOpenChange:i}}=sc(),l=()=>{i(!1),r&&r()};return o.createElement("div",{className:lc.close,...t,ref:n,onClick:l},o.createElement(xe,{icon:"close-line"}))}),US=e=>o.createElement(WS,{open:e.open,onOpen:e.onOpen,onClose:e.onClose},o.createElement(VS,{className:lc.wrapper},o.createElement(HS,null),e.children)),qS="_wrapper_1wvfc_1",BS={wrapper:qS},GS=e=>o.createElement("tr",{className:BS.wrapper},e.children),KS={},oc=o.createContext(KS),ZS=oc.Provider,ks=o.createContext({}),XS=ks.Provider,QS="_wrapper_1amb6_1",JS={wrapper:QS},eO=e=>{const{tree:t}=o.useContext(oc),r=(t&&t.accessor?e.data[t.accessor]:[]).length>0;return o.createElement(XS,{value:{hasExpanded:r,deps:e.deps,data:e.data,expanded:e.expanded,setExpand:e.setExpand}},o.createElement("tr",{className:JS.wrapper},e.children))},tO="_wrapper_3ffw6_1",nO={wrapper:tO},rO=e=>o.createElement("div",{className:nO.wrapper},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",null,e.children))),iO="_wrapper_1sqox_1",lO="_table_1sqox_10",sO="_head_1sqox_19",oO="_tbody_1sqox_23",aO="_caption_1sqox_27",or={wrapper:iO,table:lO,head:sO,tbody:oO,caption:aO},km=e=>{const{tree:t}=o.useContext(oc),[n,r]=o.useState(()=>t?.defaultExpanded??!1);let i=[];const l=s=>{r(s)};return i.push(o.createElement(eO,{key:"row_"+e.index+"_"+e.deps,data:e.data,deps:e.deps,expanded:n,setExpand:l},o.Children.map(e.children,s=>{if(o.isValidElement(s)){const a=s;return o.cloneElement(a,{_data:e.data})}return o.createElement("td",{key:"row_"+e.index+"_"+e.deps,className:or.th},"Error")}))),n&&e.tree&&e.data[e.tree.accessor].length&&(i=[...i,...e.data[e.tree.accessor].map((s,a)=>o.createElement(km,{key:"row_"+(a+1)*10+"_"+e.deps,data:s,deps:e.deps+1,tree:e.tree,index:a*10},e.children))]),i},cO=e=>o.createElement(ZS,{value:{tree:e.tree}},o.createElement("div",{className:or.wrapper},o.createElement("table",{className:or.table},o.createElement("thead",{className:or.head},o.createElement(GS,null,o.Children.map(e.children,(t,n)=>{if(o.isValidElement(t)){const r=t;return o.cloneElement(r,{_type:"title",key:"th_"+n})}return o.createElement("th",{key:"th_"+n,className:or.th},"Error")}))),o.createElement("tbody",{className:or.tbody},e.data.map((t,n)=>o.createElement(km,{key:"row_"+n,index:n,deps:0,tree:e.tree,data:t},e.children))),!e.data.length&&o.createElement("caption",{className:or.caption},e.empty??o.createElement(rO,null,"Нет данных"))))),uO="_wrapper_1spur_1",fO="_cell_1spur_6",dO="_content_1spur_11",mO="_text_1spur_20",rr={wrapper:uO,cell:fO,content:dO,text:mO,"align--left":"_align--left_1spur_26","align--center":"_align--center_1spur_29","align--right":"_align--right_1spur_32"},Sm=e=>{const t=o.useRef(null),[n,r]=o.useState(0),{width:i,align:l}=o.use(cc),s=o.useMemo(()=>se(rr.wrapper,{[rr["align--left"]]:l==="left",[rr["align--center"]]:l==="center",[rr["align--right"]]:l==="right"}),[l]);return o.useEffect(()=>{const a=new ResizeObserver(c=>{for(let u of c){const f=u.borderBoxSize[0];r(f.inlineSize)}});return t.current&&a.observe(t.current),()=>{a.disconnect()}},[t]),o.createElement("th",{ref:t,className:s,style:{width:i}},o.createElement("div",{className:rr.cell,style:{width:n}},o.createElement("div",{className:rr.content},o.createElement(ue,{size:"caption-l",weight:"medium"},o.createElement("p",{className:rr.text},o.Children.map(e.children,a=>o.isValidElement(a)?o.cloneElement(a):a))))))},ac=o.createContext({}),hO=ac.Provider,pO="_wrapper_12i2w_1",gO="_cell_12i2w_5",vO="_content_12i2w_12",oo={wrapper:pO,cell:gO,content:vO},Om=e=>{const{deps:t,data:n}=o.use(ks),{accessor:r}=o.use(cc);return o.createElement(hO,{value:{deps:t,data:r?n[r]:n}},o.createElement("td",{className:oo.wrapper},o.createElement("div",{className:oo.cell},o.createElement("div",{className:oo.content},o.Children.map(e.children,i=>o.isValidElement(i)?o.cloneElement(i,{data:r?n[r]:n,children:r?n[r]:null}):i)))))},yO=()=>{const{data:e,deps:t}=o.useContext(ac);return{data:e,deps:t}},cc=o.createContext({}),Lu=cc.Provider,_O=e=>{const[t,n]=o.useState(0),r=o.useMemo(()=>o.Children.toArray(e.children).find(s=>o.isValidElement(s)?s.type===Sm:!1),[e.children]),i=o.useMemo(()=>o.Children.toArray(e.children).find(s=>o.isValidElement(s)?s.type===Om:!1),[e.children]);return e._type==="title"?r?o.createElement(Lu,{value:{setWidth:n,dynamicWidth:t,width:e.width,accessor:e.accessor,align:e.align}},r):o.createElement("th",{style:{width:e.width}}):i?o.createElement(Lu,{value:{setWidth:n,width:e.width,dynamicWidth:t,accessor:e.accessor}},i):o.createElement("td",null)},bO=Object.assign(_O,{Title:Sm,Cell:Om}),wO="_cell_1rd18_1",xO="_expand_1rd18_8",EO="_active_1rd18_28",kO="_disabled_1rd18_35",rl={cell:wO,expand:xO,active:EO,disabled:kO},SO=()=>{const{hasExpanded:e,expanded:t,setExpand:n}=o.use(ks),r=o.useMemo(()=>se(rl.expand,{[rl.active]:e&&t,[rl.disabled]:!e}),[t,e]),i=()=>{e&&n(!t)};return o.createElement("div",{className:rl.cell,onClick:()=>i()},o.createElement("div",{className:r},t&&e?o.createElement(xe,{icon:"arrow-down-s-line"}):o.createElement(xe,{icon:"arrow-right-s-line"})))};exports.Accordion=w_;exports.Animate=ic;exports.Avatar=kd;exports.Badge=Oi;exports.BaseOption=Ko;exports.Breadcrumb=lk;exports.Button=di;exports.ButtonDropdown=Pv;exports.ButtonIcon=Um;exports.ButtonLink=Zm;exports.Calendar=_m;exports.Caption=f_;exports.Card=C1;exports.Checkbox=ry;exports.Chip=F_;exports.Column=bO;exports.Container=I1;exports.Datepicker=l1;exports.Divider=xm;exports.Dot=ao;exports.DropDownWrapper=Ra;exports.Expand=SO;exports.FieldWrapper=lr;exports.Icon=xe;exports.Input=ds;exports.InputMask=Po;exports.InputNumeral=Ly;exports.InputSelect=Zy;exports.Label=Ao;exports.LinkTypography=L1;exports.MenuItem=rS;exports.Modal=US;exports.Notification=gk;exports.QuantityStepper=ek;exports.Radio=Uv;exports.Scrollbar=sd;exports.Select=Pk;exports.SelectTree=Kk;exports.Sidebar=AS;exports.Slider=q_;exports.Spinner=U1;exports.TabMenu=D1;exports.Table=cO;exports.Textarea=i_;exports.Toggle=Sd;exports.ToolTip=vb;exports.Typography=ue;exports.User=_S;exports.cellContext=ac;exports.iconName=$m;exports.rowContext=ks;exports.useCellData=yO;exports.useModalContext=sc;exports.useTooltip=Od;exports.useTooltipContext=$a;