Plugin Directory

Changeset 2786215


Ignore:
Timestamp:
09/17/2022 04:01:12 AM (2 years ago)
Author:
uglyrobot
Message:

Update to version 1.2 from GitHub

Location:
imajinn-ai
Files:
2 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • imajinn-ai/tags/1.2/build/block.asset.php

    r2786107 r2786215  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9aa0b6fcff3ae473c475');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'b0ccd9275de548ed304b');
  • imajinn-ai/tags/1.2/build/block.css

    r2785004 r2786215  
    1 .editor-styles-wrapper .wp-block-infinite-uploads-imajinn-ai p{font-size:120%}.imajinn-upgrade-modal-buttons{text-align:right}.imajinn-upgrade-modal-buttons a,.imajinn-upgrade-modal-buttons button{float:right;margin-left:10px}.wp-block-infinite-uploads-imajinn-ai .components-spinner{background-color:inherit}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__label svg{fill:#000}.wp-block-infinite-uploads-imajinn-ai .components-notice{margin-bottom:10px;width:100%}.wp-block-infinite-uploads-imajinn-ai .results-grid{gap:16px;margin-bottom:20px}.wp-block-infinite-uploads-imajinn-ai img.generation-zoom{transition:transform .2s}.wp-block-infinite-uploads-imajinn-ai img.generation-zoom:hover{border-radius:3px;box-shadow:0 0 10px rgba(0,0,0,.4);position:absolute;transform:scale(1.25);z-index:100}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__fieldset .components-button,.wp-block-infinite-uploads-imajinn-ai button{margin:0}.wp-block-infinite-uploads-imajinn-ai button.ratio-3-2 svg{transform:rotate(90deg) scaleX(-1)}.wp-block-infinite-uploads-imajinn-ai .credits{font-size:20px!important;font-weight:lighter;margin:0}.wp-block-infinite-uploads-imajinn-ai .corner-controls{align-items:center;display:flex;position:absolute;right:10px;top:10px}.wp-block-infinite-uploads-imajinn-ai .corner-controls div{padding:6px}.wp-block-infinite-uploads-imajinn-ai .prompt-form{margin-bottom:5px;width:100%}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form{align-items:flex-end;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-bottom:20px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-base-control{display:inline-block;margin-right:20px;width:175px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-base-control:last-of-type{margin-right:0}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-button{margin-bottom:5px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-button svg{height:15px}.wp-block-infinite-uploads-imajinn-ai .text-prompt{width:100%}.wp-block-infinite-uploads-imajinn-ai .prompt-tips{height:20px;padding:0;width:20px}.wp-block-infinite-uploads-imajinn-ai .prompt-tips svg{height:20px;width:20px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button{color:gray;font-size:13px;text-align:right}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer .dashicon,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button .dashicon{font-size:13px;height:13px;line-height:1.9;width:13px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer a,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button a{margin-right:10px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer .imajinn-credits,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button .imajinn-credits{display:inline-block}.wp-block-infinite-uploads-imajinn-ai .connect-wrapper{align-content:space-between;align-items:end;margin-top:10px}.wp-block-infinite-uploads-imajinn-ai .connect-wrapper .components-base-control__help{font-size:80%}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__fieldset .components-button.connect-button{margin-bottom:8px}.wp-block-infinite-uploads-imajinn-ai .license-links{margin-bottom:10px;margin-left:30px}.wp-block-infinite-uploads-imajinn-ai .license-links .components-external-link{margin-right:12px}.wp-block-infinite-uploads-imajinn-ai .components-notice .components-external-link{margin-left:5px}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading{margin:40px auto}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading .components-button{margin-left:5px}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading .imajinn-spinner{display:block;height:100px;margin:0 auto;width:100px}.imajinn-history .components-panel__body-title{height:50px}.imajinn-history .components-panel__body-title .components-button{float:right;margin-right:10px;margin-top:7px}.imajinn-history .components-panel__body-title img{float:left;height:50px;width:50px}.imajinn-history .components-panel__row{clear:both}.imajinn-toolbar .credit-label{padding:24px 0 24px 6px}.imajinn-toolbar .credits{font-size:18px;padding:24px 0 24px 6px}.imajinn-toolbar .refreshing-button{padding-left:0}.imajinn-toolbar .refreshing-button .dashicon{color:gray}.imajinn-toolbar .refreshing-button.is-refreshing .dashicon{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
     1.editor-styles-wrapper .wp-block-infinite-uploads-imajinn-ai p{font-size:120%}.imajinn-upgrade-modal-buttons{text-align:right}.imajinn-upgrade-modal-buttons a,.imajinn-upgrade-modal-buttons button{float:right;margin-left:10px}.wp-block-infinite-uploads-imajinn-ai .components-spinner{background-color:inherit}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__label svg{fill:#000}.wp-block-infinite-uploads-imajinn-ai .components-notice{margin-bottom:10px;width:100%}.wp-block-infinite-uploads-imajinn-ai .results-grid{gap:16px;margin-bottom:20px}.wp-block-infinite-uploads-imajinn-ai img.generation-zoom{transition:transform .2s}.wp-block-infinite-uploads-imajinn-ai img.generation-zoom:hover{border-radius:3px;box-shadow:0 0 10px rgba(0,0,0,.4);position:absolute;transform:scale(1.25);z-index:100}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__fieldset .components-button,.wp-block-infinite-uploads-imajinn-ai button{margin:0}.wp-block-infinite-uploads-imajinn-ai button.ratio-3-2 svg{transform:rotate(90deg) scaleX(-1)}.wp-block-infinite-uploads-imajinn-ai .credits{font-size:20px!important;font-weight:lighter;margin:0}.wp-block-infinite-uploads-imajinn-ai .corner-controls{align-items:center;display:flex;position:absolute;right:10px;top:10px}.wp-block-infinite-uploads-imajinn-ai .corner-controls div{padding:6px}.wp-block-infinite-uploads-imajinn-ai .prompt-form{margin-bottom:5px;width:100%}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form{align-items:flex-end;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-bottom:20px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-base-control{display:inline-block;margin-right:20px;width:175px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-base-control:last-of-type{margin-right:0}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-button{margin-bottom:5px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-button svg{height:15px}.wp-block-infinite-uploads-imajinn-ai .text-prompt{width:100%}.wp-block-infinite-uploads-imajinn-ai .prompt-tips{height:20px;padding:0;width:20px}.wp-block-infinite-uploads-imajinn-ai .prompt-tips svg{height:20px;width:20px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button{color:gray;font-size:13px;text-align:right}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer .dashicon,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button .dashicon{font-size:13px;height:13px;line-height:1.9;width:13px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer a,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button a{margin-right:10px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer .imajinn-credits,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button .imajinn-credits{display:inline-block}.wp-block-infinite-uploads-imajinn-ai .connect-wrapper{align-content:space-between;align-items:end;margin-top:10px}.wp-block-infinite-uploads-imajinn-ai .connect-wrapper .components-base-control__help{font-size:80%}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__fieldset .components-button.connect-button{margin-bottom:8px}.wp-block-infinite-uploads-imajinn-ai .license-links{margin-bottom:10px;margin-left:30px}.wp-block-infinite-uploads-imajinn-ai .license-links .components-external-link{margin-right:12px}.wp-block-infinite-uploads-imajinn-ai .components-notice .components-external-link{margin-left:5px}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading{margin:40px auto}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading .components-button{margin-left:5px}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading .imajinn-spinner{display:block;height:100px;margin:0 auto;width:100px}.wp-block-infinite-uploads-imajinn-ai .components-card-footer{padding:10px}.wp-block-infinite-uploads-imajinn-ai .components-card-footer .imajinn-image-insert{margin-left:10px}.wp-block-infinite-uploads-imajinn-ai .components-card-footer .components-button-group.imajinn-image-actions .components-button{box-shadow:none}.imajinn-history .components-panel__body-title{height:50px}.imajinn-history .components-panel__body-title .components-button{float:right;margin-right:10px;margin-top:7px}.imajinn-history .components-panel__body-title img{float:left;height:50px;width:50px}.imajinn-history .components-panel__row{clear:both}.imajinn-toolbar .credit-label{padding:24px 0 24px 6px}.imajinn-toolbar .credits{font-size:18px;padding:24px 0 24px 6px}.imajinn-toolbar .refreshing-button{padding-left:0}.imajinn-toolbar .refreshing-button .dashicon{color:gray}.imajinn-toolbar .refreshing-button.is-refreshing .dashicon{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.media_page_imajinn-ai{background-color:#fff}.media_page_imajinn-ai #wpfooter{display:none}
  • imajinn-ai/tags/1.2/build/block.js

    r2786107 r2786215  
    1 !function(){"use strict";var e={684:function(e,t,n){n.d(t,{DT:function(){return a},ZZ:function(){return o},mC:function(){return r}});var i=n(307);function a(){return(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68.99 99",height:"30",width:"30"},(0,i.createElement)("path",{d:"M65.19,60.78c3.9-3.9,6.19-17.59-.2-23.67-4.3-2.8-10.87,1.08-18.09,.8-.51-.02-1.02,.07-1.49,.26-.67,.28-1.44,.72-2.26,1.42-2.56,2.19-5.99,3.51-8.31,2.21-1.84-1.23-1.39-3.92-1.31-4.32-3.97,.8-4.55-.88-8.17,.24-6.84,2.12-18.72,17.38-9.96,22.27,3.89,1.73,11.79,.79,11.79,.79,0,0,6.33,8.55,.95,12.41-5.03,3.61-9.48-.45-15.51-.97-12.95-1.21-19.27,16.96-2.54,26.78-3.64-6.18-4.42-14.42,3.76-14.42,5.68,0,13.27,8.43,24.48,7.03,9.69-1.21,13.03-5.15,17.38-16.07,2.01-4.71,6.92-10.71,6.92-10.71-6.91,2.54-10.67-.61-14.5-1.96-3.83-1.34-8.87-2.09-8.87-2.09,6.29,0,11.48,2.43,15.72,3.05,4.07,.6,7.6-.43,10.22-3.05Z"}),(0,i.createElement)("path",{d:"M54.55,13.82c-2.78-2.37-5.77-6.73-8.76-7.16-4.03-.58-5.66,1.64-6.51,4.46,0-.19-.01-.38-.03-.57L38.55,.04c0-.05-.08-.05-.08,0l-.88,10.25c-.1,1.36,.04,2.72,.4,4.03l.58,1.15c-.02,.39-.01,.62-.01,.62-1.14,1.24-1.97,3.51-2.59,5.14l.53,1.44s.1,2.24-1.84,4.55c0,0-1.2,1.43-1.34,1.77-.17,.4-.16,.96,.47,1.01,.64,.05,2.02,.23,2.02,.23l-.03,2.06c0,.58,.27,2.39,.42,2.86,.58,1.79,.37,3.29-.15,3.43-1.56,.45-1.92-1.14-1.92-1.14,0,0-1.22,4.58,3.55,3.85,3.06-.47,4.72-4.09,7.57-5.19h0c.18-.07,.36-.1,.55-.11,4.53-.1,7.41-.84,7.93-3.92,4.84-.42,6.65-2.72,7.81-7.44,1.21-4.91-2.73-7.17-7.01-10.81Z"}))}function r(){return(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"55.435381255341",height:"60",viewBox:"0 0 1167.58 1263.72",version:"1.1"},(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:"clip1"},(0,i.createElement)("path",{d:"M 525 1006 L 595 1006 L 595 1263.71875 L 525 1263.71875 Z M 525 1006 "})),(0,i.createElement)("clipPath",{id:"clip2"},(0,i.createElement)("path",{d:"M 1018 1006 L 1167.578125 1006 L 1167.578125 1212 L 1018 1212 Z M 1018 1006 "}))),(0,i.createElement)("g",{id:"surface1"},(0,i.createElement)("path",{d:"M 883.503906 564.917969 C 919.703125 528.71875 941.007813 401.410156 881.6875 344.964844 C 841.726563 318.957031 780.652344 354.957031 713.5625 352.410156 C 708.824219 352.230469 704.105469 353.039063 699.722656 354.847656 C 693.507813 357.414063 686.355469 361.507813 678.730469 368.042969 C 654.972656 388.40625 623.070313 400.625 601.488281 388.585938 C 584.429688 377.132813 588.597656 352.140625 589.332031 348.394531 C 552.476563 355.824219 547.042969 340.191406 513.355469 350.644531 C 449.75 370.382813 339.335938 512.171875 420.820313 557.613281 C 456.992188 573.714844 530.402344 564.917969 530.402344 564.917969 C 530.402344 564.917969 589.253906 644.367188 539.238281 680.246094 C 492.445313 713.808594 451.089844 676.105469 395.078125 671.234375 C 274.757813 660.003906 216.007813 828.910156 371.429688 920.136719 C 337.640625 862.695313 330.320313 786.113281 406.339844 786.113281 C 459.125 786.113281 529.695313 864.453125 633.84375 851.433594 C 723.941406 840.171875 754.910156 803.570313 795.363281 702.039063 C 814.039063 658.285156 859.652344 602.535156 859.652344 602.535156 C 795.457031 626.1875 760.519531 596.839844 724.90625 584.359375 C 689.289063 571.878906 642.421875 564.917969 642.421875 564.917969 C 700.839844 564.917969 749.109375 587.472656 788.523438 593.257813 C 826.324219 598.800781 859.152344 589.269531 883.503906 564.917969 "}),(0,i.createElement)("path",{d:"M 784.621094 128.429688 C 758.757813 106.421875 730.980469 65.921875 703.167969 61.910156 C 665.6875 56.5 650.527344 77.128906 642.636719 103.398438 C 642.59375 101.628906 642.523438 99.859375 642.386719 98.089844 L 635.902344 0.351563 C 635.871094 -0.121094 635.1875 -0.121094 635.15625 0.351563 L 626.976563 95.570313 C 626.089844 108.179688 627.359375 120.851563 630.730469 133.03125 L 636.097656 143.699219 C 635.9375 147.328125 635.964844 149.46875 635.964844 149.46875 C 625.332031 161.011719 617.640625 182.050781 611.933594 197.261719 L 616.851563 210.640625 C 616.851563 210.640625 617.800781 231.441406 599.78125 252.960938 C 599.78125 252.960938 588.667969 266.253906 587.359375 269.429688 C 585.824219 273.152344 585.828125 278.3125 591.742188 278.785156 C 597.652344 279.257813 610.558594 280.914063 610.558594 280.914063 L 610.324219 300.066406 C 610.324219 305.457031 612.859375 322.316406 614.246094 326.636719 C 619.597656 343.292969 617.640625 357.179688 612.886719 358.539063 C 598.386719 362.683594 595.0625 347.902344 595.0625 347.902344 C 595.0625 347.902344 583.699219 390.441406 628.046875 383.652344 C 656.480469 379.300781 671.941406 345.640625 698.414063 335.460938 C 700.050781 334.828125 701.785156 334.496094 703.539063 334.457031 C 745.660156 333.558594 772.402344 326.636719 777.207031 298.027344 C 822.210938 294.09375 838.976563 272.722656 849.785156 228.890625 C 861.050781 183.21875 824.402344 162.28125 784.621094 128.429688 "}),(0,i.createElement)("path",{d:"M 0 1211.832031 L 0 1006.238281 L 14.34375 1006.238281 L 14.34375 1211.832031 L 0 1211.832031 "}),(0,i.createElement)("path",{d:"M 191.785156 1211.832031 L 115.144531 1021.988281 L 114.019531 1021.988281 C 114.769531 1033.609375 115.144531 1045.519531 115.144531 1057.710938 L 115.144531 1211.832031 L 101.363281 1211.832031 L 101.363281 1006.238281 L 123.582031 1006.238281 L 196.425781 1187.082031 L 197.269531 1187.082031 L 270.113281 1006.238281 L 291.769531 1006.238281 L 291.769531 1211.832031 L 277.285156 1211.832031 L 277.285156 1056.019531 C 277.285156 1045.140625 277.847656 1033.890625 278.972656 1022.269531 L 277.847656 1022.269531 L 200.925781 1211.832031 L 191.785156 1211.832031 "}),(0,i.createElement)("path",{d:"M 399.320313 1126.328125 L 472.867188 1126.328125 L 444.882813 1052.21875 C 442.535156 1046.410156 439.722656 1038.351563 436.445313 1028.03125 C 433.914063 1037.03125 431.144531 1045.191406 428.148438 1052.5 Z M 477.648438 1139.269531 L 394.117188 1139.269531 L 365.429688 1211.832031 L 349.539063 1211.832031 L 432.226563 1005.390625 L 441.367188 1005.390625 L 522.367188 1211.832031 L 506.195313 1211.832031 L 477.648438 1139.269531 "}),(0,i.createElement)("g",{clipPath:"url(#clip1)",clipRule:"nonzero"},(0,i.createElement)("path",{d:"M 546.523438 1263.71875 C 537.902344 1263.71875 530.824219 1262.460938 525.289063 1259.921875 L 525.289063 1247.550781 C 532.601563 1249.421875 539.589844 1250.359375 546.242188 1250.359375 C 568.929688 1250.359375 580.273438 1237.988281 580.273438 1213.238281 L 580.273438 1006.238281 L 594.617188 1006.238281 L 594.617188 1211.832031 C 594.617188 1246.421875 578.585938 1263.71875 546.523438 1263.71875 "})),(0,i.createElement)("path",{d:"M 680.230469 1211.832031 L 680.230469 1006.238281 L 694.574219 1006.238281 L 694.574219 1211.832031 L 680.230469 1211.832031 "}),(0,i.createElement)("path",{d:"M 931.078125 1211.832031 L 916.59375 1211.832031 L 794.8125 1029.300781 L 793.6875 1029.300781 C 794.8125 1051.050781 795.375 1067.460938 795.375 1078.519531 L 795.375 1211.832031 L 781.59375 1211.832031 L 781.59375 1006.238281 L 795.9375 1006.238281 L 917.578125 1188.488281 L 918.421875 1188.488281 C 917.578125 1171.609375 917.15625 1155.578125 917.15625 1140.390625 L 917.15625 1006.238281 L 931.078125 1006.238281 L 931.078125 1211.832031 "}),(0,i.createElement)("g",{clipPath:"url(#clip2)",clipRule:"nonzero"},(0,i.createElement)("path",{d:"M 1167.578125 1211.832031 L 1153.101563 1211.832031 L 1031.320313 1029.300781 L 1030.191406 1029.300781 C 1031.320313 1051.050781 1031.878906 1067.460938 1031.878906 1078.519531 L 1031.878906 1211.832031 L 1018.101563 1211.832031 L 1018.101563 1006.238281 L 1032.441406 1006.238281 L 1154.078125 1188.488281 L 1154.929688 1188.488281 C 1154.078125 1171.609375 1153.660156 1155.578125 1153.660156 1140.390625 L 1153.660156 1006.238281 L 1167.578125 1006.238281 L 1167.578125 1211.832031 "}))))}function o(){return(0,i.useEffect)((()=>{var t,i;t=this,i=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}var a=Math.abs;function r(e){return e}function o(e,t,n){var i=1-n;return 3*n*i*(e*i+t*n)+n*n*n}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return e<0||e>1||n<0||n>1?null:a(e-t)<=1e-5&&a(n-i)<=1e-5?r:function(r){if(r<=0)return e>0?r*t/e:0===t&&n>0?r*i/n:0;if(r>=1)return n<1?1+(r-1)*(i-1)/(n-1):1===n&&e<1?1+(r-1)*(t-1)/(e-1):1;for(var l,s=0,c=1;s<c;){var u=o(e,n,l=(s+c)/2);if(a(r-u)<1e-5)break;u<r?s=l:c=l}return o(t,i,l)}}function s(){return 1}function c(e){return 1===e?1:0}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(1===e){if(0===t)return c;if(1===t)return s}var n=1/e;return function(e){return e>=1?1:(e+=t*n)-e%n}}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(Number.isInteger(e))return e;var n=Math.pow(10,t);return Math.round(e*n)/n}var d=Math.PI/180;function h(e,t,n){return e>=.5?n:t}function p(e,t,n){return 0===e||t===n?t:e*(n-t)+t}function g(e,t,n){var i=p(e,t,n);return i<=0?0:i}function f(e,t,n){return 0===e?t:1===e?n:{x:p(e,t.x,n.x),y:p(e,t.y,n.y)}}function y(e,t,n){return 0===e?t:1===e?n:{x:g(e,t.x,n.x),y:g(e,t.y,n.y)}}function v(e,t,n){var i=function(e,t,n){return Math.round(p(e,t,n))}(e,t,n);return i<=0?0:i>=255?255:i}function b(e,t,n){return 0===e?t:1===e?n:{r:v(e,t.r,n.r),g:v(e,t.g,n.g),b:v(e,t.b,n.b),a:p(e,null==t.a?1:t.a,null==n.a?1:n.a)}}function _(e,t,n){if(0===e)return t;if(1===e)return n;var i=t.length;if(i!==n.length)return h(e,t,n);for(var a=[],r=0;r<i;r++)a.push(b(e,t[r],n[r]));return a}function w(e,t,n){var i=t.length;if(i!==n.length)return h(e,t,n);for(var a=new Array(i),r=0;r<i;r++)a[r]=p(e,t[r],n[r]);return a}function E(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function x(e,t){if(--t<=0)return e;var n=(e=Object.assign([],e)).length;do{for(var i=0;i<n;i++)e.push(e[i])}while(--t>0);return e}var j=/\.0+$/g;function k(e){return Number.isInteger(e)?e+"":e.toFixed(6).replace(j,"")}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e&&e.length?e.map(k).join(t):""}function M(e){return k(e.x)+","+k(e.y)}function I(e){return e?null==e.a||e.a>=1?"rgb("+e.r+","+e.g+","+e.b+")":"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":"transparent"}var S={f:null,i:y,u:function(e,t){return function(n){var i=t(n);e.setAttribute("rx",k(i.x)),e.setAttribute("ry",k(i.y))}}},A={f:null,i:function(e,t,n){return 0===e?t:1===e?n:{width:g(e,t.width,n.width),height:g(e,t.height,n.height)}},u:function(e,t){return function(n){var i=t(n);e.setAttribute("width",k(i.width)),e.setAttribute("height",k(i.height))}}},L=Math.sin,N=Math.cos,T=Math.acos,P=Math.asin,B=Math.tan,D=Math.atan2,R=Math.PI/180,O=180/Math.PI,F=Math.sqrt,Y=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;t(this,e),this.m=[n,i,a,r,o,l],this.i=null,this.w=null,this.s=null}return i(e,[{key:"point",value:function(e,t){var n=this.m;return{x:n[0]*e+n[2]*t+n[4],y:n[1]*e+n[3]*t+n[5]}}},{key:"translateSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e&&!t)return this;var n=this.m;return n[4]+=n[0]*e+n[2]*t,n[5]+=n[1]*e+n[3]*t,this.w=this.s=this.i=null,this}},{key:"rotateSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e%=360){var t=L(e*=R),n=N(e),i=this.m,a=i[0],r=i[1];i[0]=a*n+i[2]*t,i[1]=r*n+i[3]*t,i[2]=i[2]*n-a*t,i[3]=i[3]*n-r*t,this.w=this.s=this.i=null}return this}},{key:"scaleSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(1!==e||1!==t){var n=this.m;n[0]*=e,n[1]*=e,n[2]*=t,n[3]*=t,this.w=this.s=this.i=null}return this}},{key:"skewSelf",value:function(e,t){if(t%=360,(e%=360)||t){var n=this.m,i=n[0],a=n[1],r=n[2],o=n[3];e&&(e=B(e*R),n[2]+=i*e,n[3]+=a*e),t&&(t=B(t*R),n[0]+=r*t,n[1]+=o*t),this.w=this.s=this.i=null}return this}},{key:"resetSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=this.m;return o[0]=e,o[1]=t,o[2]=n,o[3]=i,o[4]=a,o[5]=r,this.w=this.s=this.i=null,this}},{key:"recomposeSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return this.isIdentity||this.resetSelf(),e&&(e.x||e.y)&&this.translateSelf(e.x,e.y),t&&this.rotateSelf(t),n&&(n.x&&this.skewSelf(n.x,0),n.y&&this.skewSelf(0,n.y)),!i||1===i.x&&1===i.y||this.scaleSelf(i.x,i.y),a&&(a.x||a.y)&&this.translateSelf(a.x,a.y),this}},{key:"decompose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.m,i=n[0]*n[0]+n[1]*n[1],a=[[n[0],n[1]],[n[2],n[3]]],r=F(i);if(0===r)return{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:0,y:0},skew:{x:0,y:0},rotate:0};a[0][0]/=r,a[0][1]/=r;var o=n[0]*n[3]-n[1]*n[2]<0;o&&(r=-r);var l=a[0][0]*a[1][0]+a[0][1]*a[1][1];a[1][0]-=a[0][0]*l,a[1][1]-=a[0][1]*l;var s=F(a[1][0]*a[1][0]+a[1][1]*a[1][1]);if(0===s)return{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:r,y:0},skew:{x:0,y:0},rotate:0};a[1][0]/=s,a[1][1]/=s,l/=s;var c=0;return a[1][1]<0?(c=T(a[1][1])*O,a[0][1]<0&&(c=360-c)):c=P(a[0][1])*O,o&&(c=-c),l=D(l,F(a[0][0]*a[0][0]+a[0][1]*a[0][1]))*O,{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:r,y:s},skew:{x:l,y:0},rotate:c}}},{key:"toString",value:function(){return null===this.s&&(this.s="matrix("+this.m.map(W).join(" ")+")"),this.s}},{key:"determinant",get:function(){var e=this.m;return e[0]*e[3]-e[1]*e[2]}},{key:"isIdentity",get:function(){if(null===this.i){var e=this.m;this.i=1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]}return this.i}}]),e}(),z=/\.0+$/;function W(e){return Number.isInteger(e)?e:e.toFixed(14).replace(z,"")}function G(e,t,n){return e+(t-e)*n}function V(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a={x:G(e.x,t.x,n),y:G(e.y,t.y,n)};return i&&(a.a=J(e,t)),a}function J(e,t){return Math.atan2(t.y-e.y,t.x-e.x)}function U(e,t,n,i){var a=1-i;return a*a*e+2*a*i*t+i*i*n}function H(e,t,n,i){return 2*(1-i)*(t-e)+2*i*(n-t)}function q(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={x:U(e.x,t.x,n.x,i),y:U(e.y,t.y,n.y,i)};return a&&(r.a=$(e,t,n,i)),r}function $(e,t,n,i){return Math.atan2(H(e.y,t.y,n.y,i),H(e.x,t.x,n.x,i))}function Z(e,t,n,i,a){var r=a*a;return a*r*(i-e+3*(t-n))+3*r*(e+n-2*t)+3*a*(t-e)+e}function K(e,t,n,i,a){var r=1-a;return 3*(r*r*(t-e)+2*r*a*(n-t)+a*a*(i-n))}function Q(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o={x:Z(e.x,t.x,n.x,i.x,a),y:Z(e.y,t.y,n.y,i.y,a)};return r&&(o.a=X(e,t,n,i,a)),o}function X(e,t,n,i,a){return Math.atan2(K(e.y,t.y,n.y,i.y,a),K(e.x,t.x,n.x,i.x,a))}function ee(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ne(t)){if(ie(n))return q(t,n.start,n,e,i)}else if(ne(n)){if(t.end)return q(t,t.end,n,e,i)}else{if(t.end)return n.start?Q(t,t.end,n.start,n,e,i):q(t,t.end,n,e,i);if(n.start)return q(t,n.start,n,e,i)}return V(t,n,e,i)}function te(e,t,n){var i=ee(e,t,n,!0);return i.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e+Math.PI:e}(i.a)/d,i}function ne(e){return!e.type||"corner"===e.type}function ie(e){return null!=e.start&&!ne(e)}Object.freeze({M:2,L:2,Z:0,H:1,V:1,C:6,Q:4,T:2,S:4,A:7});var ae=new Y,re={f:function(e){return e?e.join(" "):""},i:function(t,n,i){if(0===t)return n;if(1===t)return i;var a=n.length;if(a!==i.length)return h(t,n,i);for(var r,o=new Array(a),l=0;l<a;l++){if((r=e(n[l]))!==e(i[l]))return h(t,n,i);if("number"===r)o[l]=p(t,n[l],i[l]);else{if(n[l]!==i[l])return h(t,n,i);o[l]=n[l]}}return o}},oe={f:null,i:w,u:function(e,t){return function(n){var i=t(n);e.setAttribute("x1",k(i[0])),e.setAttribute("y1",k(i[1])),e.setAttribute("x2",k(i[2])),e.setAttribute("y2",k(i[3]))}}},le={f:k,i:p},se={f:k,i:function(e,t,n){var i=p(e,t,n);return i<=0?0:i>=1?1:i}},ce={f:C,i:function(e,t,n){var i,a,r,o=t.length,l=n.length;if(o!==l)if(0===o)t=E(o=l,0);else if(0===l)l=o,n=E(o,0);else{var s=(r=(i=o)*(a=l)/function(e,t){for(var n;t;)n=t,t=e%t,e=n;return e||1}(i,a))<0?-r:r;t=x(t,Math.floor(s/o)),n=x(n,Math.floor(s/l)),o=l=s}for(var c=[],u=0;u<o;u++)c.push(m(g(e,t[u],n[u]),6));return c}};function ue(e,t,n,i,a,r,o,l){return t=function(e,t,n){for(var i,a,r,o=e.length-1,l={},s=0;s<=o;s++)(i=e[s]).e&&(i.e=t(i.e)),i.v&&"g"===(a=i.v).t&&a.r&&(r=n.getElementById(a.r))&&(l[a.r]=r.querySelectorAll("stop"));return l}(e,i,l),function(i){var a,r=n(i,e,me);return r?"c"===r.t?I(r.v):"g"===r.t?(t[r.r]&&function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].setAttribute("stop-color",I(t[n]))}(t[r.r],r.v),(a=r.r)?"url(#"+a+")":"none"):"none":"none"}}function me(e,t,n){if(0===e)return t;if(1===e)return n;if(t&&n){var i=t.t;if(i===n.t)switch(t.t){case"c":return{t:i,v:b(e,t.v,n.v)};case"g":if(t.r===n.r)return{t:i,v:_(e,t.v,n.v),r:t.r}}}return h(e,t,n)}var de={blur:y,brightness:g,contrast:g,"drop-shadow":function(e,t,n){return 0===e?t:1===e?n:{blur:y(e,t.blur,n.blur),offset:f(e,t.offset,n.offset),color:b(e,t.color,n.color)}},grayscale:g,"hue-rotate":p,invert:g,opacity:g,saturate:g,sepia:g};function he(e,t,n){if(0===e)return t;if(1===e)return n;var i=t.length;if(i!==n.length)return h(e,t,n);for(var a,r=[],o=0;o<i;o++){if(t[o].type!==n[o].type)return t;if(!(a=de[t[o].type]))return h(e,t,n);r.push({type:t.type,value:a(e,t[o].value,n[o].value)})}return r}var pe={blur:function(e){return e?function(t){e.setAttribute("stdDeviation",M(t))}:null},brightness:function(e,t,n){return(e=fe(n,t))?function(t){t=k(t),e.map((function(e){return e.setAttribute("slope",t)}))}:null},contrast:function(e,t,n){return(e=fe(n,t))?function(t){var n=k((1-t)/2);t=k(t),e.map((function(e){e.setAttribute("slope",t),e.setAttribute("intercept",n)}))}:null},"drop-shadow":function(e,t,n){var i=n.getElementById(t+"-blur");if(!i)return null;var a=n.getElementById(t+"-offset");if(!a)return null;var r=n.getElementById(t+"-flood");return r?function(e){i.setAttribute("stdDeviation",M(e.blur)),a.setAttribute("dx",k(e.offset.x)),a.setAttribute("dy",k(e.offset.y)),r.setAttribute("flood-color",I(e.color))}:null},grayscale:function(e){return e?function(t){e.setAttribute("values",C(function(e){return[.2126+.7874*(e=1-e),.7152-.7152*e,.0722-.0722*e,0,0,.2126-.2126*e,.7152+.2848*e,.0722-.0722*e,0,0,.2126-.2126*e,.7152-.7152*e,.0722+.9278*e,0,0,0,0,0,1,0]}(t)))}:null},"hue-rotate":function(e){return e?function(t){return e.setAttribute("values",k(t))}:null},invert:function(e,t,n){return(e=fe(n,t))?function(t){t=k(t)+" "+k(1-t),e.map((function(e){return e.setAttribute("tableValues",t)}))}:null},opacity:function(e,t,n){return(e=n.getElementById(t+"-A"))?function(t){return e.setAttribute("tableValues","0 "+k(t))}:null},saturate:function(e){return e?function(t){return e.setAttribute("values",k(t))}:null},sepia:function(e){return e?function(t){return e.setAttribute("values",C(function(e){return[.393+.607*(e=1-e),.769-.769*e,.189-.189*e,0,0,.349-.349*e,.686+.314*e,.168-.168*e,0,0,.272-.272*e,.534-.534*e,.131+.869*e,0,0,0,0,0,1,0]}(t)))}:null}},ge=["R","G","B"];function fe(e,t){var n=ge.map((function(n){return e.getElementById(t+"-"+n)||null}));return-1!==n.indexOf(null)?null:n}var ye={fill:ue,"fill-opacity":se,stroke:ue,"stroke-opacity":se,strokeWidth:le,strokeDashoffset:{f:k,i:p},strokeDasharray:ce,opacity:se,transform:function(t,n,i,a){if(!(t=function(t,n){if(!t||"object"!==e(t))return null;var i=!1;for(var a in t)t.hasOwnProperty(a)&&(t[a]&&t[a].length?(t[a].forEach((function(e){e.e&&(e.e=n(e.e))})),i=!0):delete t[a]);return i?t:null}(t,a)))return null;var r=function(e,a,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t[e]?i(a,t[e],r):n&&n[e]?n[e]:o};return n&&n.a&&t.o?function(e){var n=i(e,t.o,te);return ae.recomposeSelf(n,r("r",e,p,0)+n.a,r("k",e,f),r("s",e,f),r("t",e,f)).toString()}:function(e){return ae.recomposeSelf(r("o",e,ee,null),r("r",e,p,0),r("k",e,f),r("s",e,f),r("t",e,f)).toString()}},"#filter":function(e,t,n,i,a,r,o,l){if(!t.items||!e||!e.length)return null;var s=function(e,t){var n=(e=e.map((function(e){return e&&pe[e[0]]?(t.getElementById(e[1]),pe[e[0]](t.getElementById(e[1]),e[1],t)):null}))).length;return function(t){for(var i=0;i<n;i++)e[i]&&e[i](t[i].value)}}(t.items,l);return s?(e=function(e,t){return e.map((function(e){return e.e=t(e.e),e}))}(e,i),function(t){s(n(t,e,he))}):null},"#line":oe,points:{f:C,i:w},d:re,r:le,"#size":A,"#radius":S,_:function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)this[e[n]]=t;else this[e]=t}},ve=function(){function e(n){t(this,e),this.list=n,this.length=n.length}return i(e,[{key:"setAttribute",value:function(e,t){for(var n=this.list,i=0;i<this.length;i++)n[i].setAttribute(e,t)}},{key:"removeAttribute",value:function(e){for(var t=this.list,n=0;n<this.length;n++)t[n].removeAttribute(e)}},{key:"style",value:function(e,t){for(var n=this.list,i=0;i<this.length;i++)n[i].style[e]=t}}]),e}(),be=/-./g,_e=function(e,t){return t.toUpperCase()};function we(e){return"function"==typeof e?e:h}function Ee(e){return e?"function"==typeof e?e:Array.isArray(e)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(!Array.isArray(e))return t;switch(e.length){case 1:return u(e[0])||t;case 2:return u(e[0],e[1])||t;case 4:return l(e[0],e[1],e[2],e[3])||t}return t}(e,null):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;switch(e){case"linear":return r;case"steps":return u(t.steps||1,t.jump||0)||n;case"bezier":case"cubic-bezier":return l(t.x1||0,t.y1||0,t.x2||0,t.y2||0)||n}return n}(e.type,e.value,null):null}function xe(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.length-1;if(e<=t[0].t)return i?[0,0,t[0].v]:t[0].v;if(e>=t[a].t)return i?[a,1,t[a].v]:t[a].v;var r,o=t[0],l=null;for(r=1;r<=a;r++){if(!(e>t[r].t)){l=t[r];break}o=t[r]}return null==l?i?[a,1,t[a].v]:t[a].v:o.t===l.t?i?[r,1,l.v]:l.v:(e=(e-o.t)/(l.t-o.t),o.e&&(e=o.e(e)),i?[r,e,n(e,o.v,l.v)]:n(e,o.v,l.v))}function je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e&&e.length?"function"!=typeof t?null:("function"!=typeof n&&(n=null),function(i){var a=xe(i,e,t);return null!=a&&n&&(a=n(a)),a}):null}function ke(e,t){return e.t-t.t}function Ce(t,n,i,a){if(!a||"object"!==e(a))return null;var r=null,o=null;return Array.isArray(a)?o=function(e){if(!e||!e.length)return null;for(var t=0;t<e.length;t++)e[t].e&&(e[t].e=Ee(e[t].e));return e.sort(ke)}(a):(o=a.keys,r=a.data||null),o?function(t,n,i,a,r){var o,l="@"===i[0],s="#"===i[0],c=ye[i],u=h;switch(l?(o=i.substr(1),i=o.replace(be,_e)):s&&(i=i.substr(1)),e(c)){case"function":if(u=c(a,r,xe,Ee,i,l,n,t),s)return u;break;case"string":u=je(a,we(c));break;case"object":if((u=je(a,we(c.i),c.f))&&"function"==typeof c.u)return c.u(n,u,i,l,t)}return u?function(e,t,n){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3])return e instanceof ve?function(i){return e.style(t,n(i))}:function(i){return e.style[t]=n(i)};if(Array.isArray(t)){var i=t.length;return function(a){var r=n(a);if(null==r)for(var o=0;o<i;o++)e[o].removeAttribute(t);else for(var l=0;l<i;l++)e[l].setAttribute(t,r)}}return function(i){var a=n(i);null==a?e.removeAttribute(t):e.setAttribute(t,a)}}(n,i,u,l):null}(t,n,i,o,r):null}function Me(e,t,n){if(!n)return null;var i=[];for(var a in n)if(n.hasOwnProperty(a)){var r=Ce(e,t,a,n[a]);r&&i.push(r)}return i.length?i:null}var Ie=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,e),this._id=0,this._running=!1,this._animations=n,this.direction=i.direction||1,this.speed=i.speed||1,this.fps=i.fps||100,this.offset=i.offset||0}return i(e,[{key:"_start",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=-1/0,i=null,a={},r=function r(o){e._running=!0,null==i&&(i=o);var l=Math.round((o-i+t)*e.speed),s=e.fps?1e3/e.fps:0;if(l>n+s){e.offset=l,n=l;for(var c=e._animations,u=c.length,m=0,d=0;d<u;d++)a[d]?m++:(a[d]=c[d](l,e.direction),a[d]&&m++);if(m===u)return void e._stop()}e._id=window.requestAnimationFrame(r)};this._id=window.requestAnimationFrame(r)}},{key:"_stop",value:function(){this._id&&window.cancelAnimationFrame(this._id),this._running=!1}},{key:"play",value:function(){this._running||this._start(this.offset)}},{key:"stop",value:function(){this._stop(),this.offset=0;var e=this.direction,t=this._animations;requestAnimationFrame((function(){for(var n=0;n<t.length;n++)t[n](0,e)}))}},{key:"restart",value:function(){this._stop(),this.offset=0,this._start()}},{key:"pause",value:function(){this._stop()}},{key:"reverse",value:function(){this.direction=-this.direction}}],[{key:"build",value:function(t){if(!(t=function(e){if(!e||!e.root||!Array.isArray(e.animations))return null;var t=window.document.getElementById(e.root);if(!t)return null;var n=e.animations.map((function(e){return function(e,t){if(!t.duration||t.duration<0)return null;var n=function(e,t){if(!t)return null;var n=[];if(Array.isArray(t))for(var i=t.length,a=0;a<i;a++){var r=t[a];if(2===r.length){var o=null;if("string"==typeof r[0])o=e.getElementById(r[0]);else if(Array.isArray(r[0])){o=[];for(var l=0;l<r[0].length;l++)if("string"==typeof r[0][l]){var s=e.getElementById(r[0][l]);s&&o.push(s)}o=o.length?1===o.length?o[0]:new ve(o):null}if(o){var c=Me(e,o,r[1]);c&&(n=n.concat(c))}}}else for(var u in t)if(t.hasOwnProperty(u)){var m=e.getElementById(u);if(m){var d=Me(e,m,t[u]);d&&(n=n.concat(d))}}return n.length?n:null}(e,t.elements);return n?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=e.length,l=i>0?t:0;a&&n%2==0&&(l=t-l);var s=null;return function(c,u){var m=c%t,d=1+(c-m)/t;u*=i,a&&d%2==0&&(u=-u);var h=!1;if(d>n)m=l,h=!0,-1===r&&(m=i>0?0:t);else if(u<0&&(m=t-m),m===s)return!1;s=m;for(var p=0;p<o;p++)e[p](m);return h}}(n,t.duration,t.iterations||1/0,t.direction||1,!!t.alternate,t.fill||1):null}(t,e)})).filter((function(e){return!!e}));return n.length?{element:t,animations:n,options:e.options||void 0}:null}(t)))return null;var n=t.element,i=t.options||{},a=new e(t.animations,t.options);return function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("click"!==n){if("hover"===n)return t.addEventListener("mouseenter",(function(){return e.play()})),void t.addEventListener("mouseleave","freeze"===i?function(){return e.pause()}:function(){return e.stop()});e.play()}else{var a=function n(){t.removeEventListener("click",n),e.play()};t.addEventListener("click",a)}}(a,n,i.start,i.hover),a}}]),e}();return function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var n=Date.now(),i=Math.max(0,16-(n-e)),a=window.setTimeout((function(){t(n+i)}),i);return e=n+i,a},window.cancelAnimationFrame=window.clearTimeout)}(),Ie},"object"==typeof exports?e.exports=i():"function"==typeof define&&n.amdO?define(i):(t=t||self).__SVGATOR_PLAYER__=i(),__SVGATOR_PLAYER__.build({root:"e29gnwghxaec1",animations:[{duration:3e3,direction:1,iterations:0,fill:1,alternate:!1,elements:{e29gnwghxaec4:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:70,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:160,y:60.000000000000085,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:250.00000000000006,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:250.0000000000001,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:160.00000000000009,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:70.00000000000013,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:70.00000000000011,y:110.00000000000003,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec5:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:70,y:209.99999999999997,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:70,y:109.99999999999996,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:160,y:59.999999999999986,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:250.00000000000006,y:110,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:250,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:160.00000000000003,y:260,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:70.00000000000006,y:210,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec6:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:160,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:70.00000000000003,y:210.00000000000003,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:70.0000000033166,y:110.00000000017586,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:159.99999999559876,y:59.99999999808161,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:250.00000000133716,y:109.99999999826927,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:250.00000000074502,y:209.99999999748923,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:160.00000000328416,y:259.99999999938586,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec7:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:250.00000000000006,y:209.99999999827637,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:160.00000000000003,y:259.9999999982764,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:70.00000000000003,y:209.9999999982764,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:70.00000000000003,y:109.99999999827641,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:159.99999999999997,y:59.99999999827642,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:250,y:109.99999999827642,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:250.00000000000003,y:209.99999999827642,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec8:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:250.00000000000006,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:250.00000000000009,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:160.00000000000006,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:70.00000000000006,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:70.00000000000003,y:110.00000000000007,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:160.00000000000006,y:60.000000000000064,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:250,y:110.00000000000006,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec9:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:160,y:60,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:249.99999999999997,y:110,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:249.99999999999994,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:159.99999999999991,y:260,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:69.99999999999991,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:69.99999999999994,y:110.00000000000001,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:159.99999999999994,y:60.00000000000004,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}}}}],options:{start:"load",hover:"restart"}})}),[]),(0,i.createElement)("svg",{id:"e29gnwghxaec1",className:"imajinn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 300",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision"},(0,i.createElement)("defs",null,(0,i.createElement)("filter",{id:"e29gnwghxaec4-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec4-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec5-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec5-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec6-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec6-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec7-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec7-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec8-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec8-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec9-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec9-filter-blur-0",stdDeviation:"0,0",result:"result"}))),(0,i.createElement)("circle",{id:"e29gnwghxaec2",r:"50",transform:"matrix(-1 0 -0 -1 149.99999999999997 50.00000000379265)",fill:"none",stroke:"rgb(255,122,122)",strokeWidth:"6",strokeDashoffset:"314.160000",strokeDasharray:"314.160000"}),(0,i.createElement)("circle",{id:"e29gnwghxaec3",r:"50",transform:"matrix(-1 0 -0 -1 49.99999999999997 150.00000000379259)",fill:"none",stroke:"rgb(255,122,122)",strokeWidth:"6",strokeDashoffset:"314.160000",strokeDasharray:"314.160000"}),(0,i.createElement)("path",{id:"e29gnwghxaec4",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 52.00000000000004 110.00000000344897)",filter:"url(#e29gnwghxaec4-filter)",fill:"rgb(239,237,39)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec5",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 52.00000000000004 210.00000000344886)",filter:"url(#e29gnwghxaec5-filter)",fill:"rgb(236,0,140)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec6",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 142.00000000000003 260.00000000344897)",filter:"url(#e29gnwghxaec6-filter)",fill:"rgb(238,124,30)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec7",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 232.00000000000009 210.00000000172525)",filter:"url(#e29gnwghxaec7-filter)",fill:"rgb(0,161,103)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec8",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 232.00000000000009 110.00000000344897)",filter:"url(#e29gnwghxaec8-filter)",fill:"rgb(192,53,226)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec9",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 142.00000000000003 60.00000000344890)",filter:"url(#e29gnwghxaec9-filter)",fill:"rgb(38,169,224)",stroke:"none",strokeWidth:"6"}))}n(609),e=n.hmd(e)},609:function(e){e.exports=window.wp.components},307:function(e){e.exports=window.wp.element}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var r=t[i]={id:i,loaded:!1,exports:{}};return e[i](r,r.exports,n),r.loaded=!0,r.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");i.length&&(e=i[i.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),function(){var e=window.wp.blocks;function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}var i=n(307),a=window.wp.i18n,r=window.wp.blockEditor,o=n(609),l=window.wp.primitives,s=(0,i.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(l.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),c=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),u=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),m=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),d=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),h=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),p=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})),g=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"infinite-uploads/imajinn-ai","version":"0.1.0","title":"Imajinn AI","category":"media","icon":"art","description":"Generate the perfect images from a text prompt in seconds with cutting-edge AI. Creates stunning images for any topic with just your imagination.","keywords":["img","image","photo","picture","ai","art","infinite"],"supports":{"html":false,"multiple":false,"customClassName":false,"reusable":false,"lock":false},"example":{"attributes":{"mode":"preview"}},"textdomain":"imajinn-ai","editorScript":"file:./block.js","editorStyle":"file:./block.css"}'),f=n(684),y=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),v=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));function b(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.Button,{className:"prompt-tips",onClick:()=>r(!0),icon:y,label:(0,a.__)("Prompt Tips","imajinn-ai")}),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"800px"},icon:(0,i.createElement)(o.Icon,{icon:y}),title:(0,a.__)("Basics of Prompt Engineering","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)('"Prompt Engineering" is an important skill to create  better generations with this text to image AI. After reading this document and applying these simple steps, you’ll be able to generate better images with the same amount of effort.',"imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Note: Your prompt should be in English as the AI model was only trained with English labels, and will function poorly with other languages. If you speak another language you can use a online translation tool, which should provide excellent results as it does not have to be perfect.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("1. Raw prompt","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Raw prompt is the simplest way of describing what you want to generate, for instance;","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Panda"),(0,i.createElement)("li",null,"A warrior with a sword"),(0,i.createElement)("li",null,"Skeleton")),(0,i.createElement)("p",null,(0,a.__)("This is the basic building block of any prompt. Most new people start by only using raw prompts, this is usually a mistake as the images you generate like this tend to get random and chaotic. It's best to include as much detail as possible in your prompt describing exactly what you want to see in the scene.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("2. Style","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Style is a crucial part of the prompt. The AI, when missing a specified style, usually chooses the one it has seen the most in related images, for example, if you generated landscape, it would probably generate realistic or oil painting looking images. Having a well chosen style + raw prompt is sometimes enough, as the style influences the image the most right after the raw prompt.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The most commonly used styles include:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Realistic"),(0,i.createElement)("li",null,"Oil painting"),(0,i.createElement)("li",null,"Pencil drawing"),(0,i.createElement)("li",null,"Concept art")),(0,i.createElement)("p",null,(0,a.__)("In the case of a realistic image, there are various ways of making it the style, most resulting in similar images. Here are some commonly used techniques of making the image realistic:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"a photo of + raw prompt"),(0,i.createElement)("li",null,"a photograph of + raw prompt"),(0,i.createElement)("li",null,"raw prompt, hyperrealistic"),(0,i.createElement)("li",null,"raw prompt, realistic")),(0,i.createElement)("p",null,(0,a.__)("You can of course combine these to get more and more realistic images.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To get oil painting you can just simply add “an oil painting of” to your prompt. This sometimes results in the image showing an oil painting in a frame, to fix this you can just re-run the prompt or use raw prompt + “oil painting”","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To make a pencil drawing just simply add “a pencil drawing of” to your raw prompt or make your prompt raw prompt + “pencil drawing”.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The same applies to landscape art.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("3. Artist","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To make your style more specific, or the image more coherent, you can use artists’ names in your prompt. For instance, if you want a very abstract image, you can add “made by Pablo Picasso” or just simply, “Picasso”.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Below are lists of artists in different styles that you can use, but we encourage you to search for different artists as it is a cool way of discovering new art.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Portrait:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"John Singer Sargent"),(0,i.createElement)("li",null,"Edgar Degas"),(0,i.createElement)("li",null,"Paul Cézanne"),(0,i.createElement)("li",null,"Jan van Eyck")),(0,i.createElement)("p",null,(0,a.__)("Oil painting:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Leonardo DaVinci"),(0,i.createElement)("li",null,"Vincent Van Gogh"),(0,i.createElement)("li",null,"Johannes Vermeer"),(0,i.createElement)("li",null,"Rembrandt")),(0,i.createElement)("p",null,(0,a.__)("Pencil/Pen drawing:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Albrecht Dürer"),(0,i.createElement)("li",null,"Leonardo da Vinci"),(0,i.createElement)("li",null,"Michelangelo"),(0,i.createElement)("li",null,"Jean-Auguste-Dominique Ingres")),(0,i.createElement)("p",null,(0,a.__)("Landscape art:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Thomas Moran"),(0,i.createElement)("li",null,"Claude Monet"),(0,i.createElement)("li",null,"Alfred Bierstadt"),(0,i.createElement)("li",null,"Frederic Edwin Church")),(0,i.createElement)("p",null,(0,a.__)("Mixing the artists is highly encouraged, as it can lead to interesting-looking art.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("4. Finishing touches","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("This is the part that some people take to extremes, leading to longer prompts than this article. Finishing touches are the final things that you add to your prompt to make it look like you want. For instance, if you want to make your image more artistic, add “trending on artstation”. If you want to add more realistic lighting add “Unreal Engine.” You can add anything you want, but here are some examples:","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Highly detailed, surrealism, trending on art station, triadic color scheme, smooth, sharp focus, matte, elegant, the most beautiful image ever seen, illustration, digital paint, dark, gloomy, octane render, 8k, 4k, washed colors, sharp, dramatic lighting, beautiful, post processing, picture of the day, ambient lighting, epic composition, bokeh, etc.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("5. Conclusion","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Prompt engineering allows you to have better control of what the image will look like. It (if done right) improves the image quality by a lot in every aspect.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Some fun example prompts to get you started:","imajinn-ai")),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,"A cat walks through a cyberpunk street, rain, poster, artstation, neon, futuristic, stunning, highly detailed, digital painting"),(0,i.createElement)("li",null,"a portrait of a family of dwarfs in middle earth, by Albert Bierstadt, 8K"),(0,i.createElement)("li",null,"a ",(0,i.createElement)("em",null,"[beach|jungle|scene of your choice]"),", highly detailed oil painting, unreal 5 render, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, digital art, octane render, beautiful composition, award-winning photograph, masterpiece"),(0,i.createElement)("li",null,"a close up view of a man looking like Elon Musk. rockets launching in the background, highly detailed oil painting, render, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, digital art, octane render, beautiful composition, trending on artstation, award-winning photograph, masterpiece,8k, high quality sharp anime classic anime from 2010 in style of Hayao Miyazaki"),(0,i.createElement)("li",null,"a headless astronaut in space suit, holding space helmet in hands, extremely detailed oil painting, unreal 5 render, rhads, Bruce Pennington, tim hildebrandt, digital art, octane render, beautiful composition, trending on artstation, award-winning photograph, masterpiece")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}function _(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.ToolbarButton,{onClick:()=>r(!0),icon:v,label:(0,a.__)("Help","imajinn-ai")}),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"900px"},icon:(0,i.createElement)(o.Icon,{icon:v}),title:(0,a.__)("Usage Instructions","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)("Imajinn AI is a powerful tool that uses the latest technology in AI to generate images from text. It is a great tool for writers, artists, and anyone who needs to visualize their ideas.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The Imajinn AI interface is a block that you can add to your post or page. You can add it by clicking on the plus button in the top left corner of the editor and selecting Imajinn AI. You can also add it by clicking on the Imajinn AI icon in the block inserter. It does not output any content on your site on its own, but allows you to generate and insert images into the same location in the block editor. When finished you can just close the block.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Connecting","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Infinite Uploads/Imajinn AI email and password.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Prompts","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To generate images, you need to write a prompt. A prompt is a text that describes what you want the image to look like. The prompt should be in English as the AI model was only trained with English labels, and will function poorly with other languages. The prompt can be as short as a a few words, or as long as a paragraph. The longer the prompt, the more detailed the image will be. Please see our prompt engineering guide for more information on how to write a good prompt.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Prefilled Styles","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To give you inspiration and make it easier to generate images in specific styles, we have added some dropdowns with prefilled styles that you can optionally select from. When optionally choosing options here it will append specific keywords to your prompt to achieve that style when sent to our servers.","imajinn-ai")),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Image Style","imajinn-ai")),"-",(0,a.__)("Choose from many common photographic or artistic styles and mediums.","imajinn-ai")),(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Artist Style","imajinn-ai")),"-",(0,a.__)("Choose to generate your images based on the styles of some famous artists.","imajinn-ai")),(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Modifier","imajinn-ai")),"-",(0,a.__)("Some fun and common styles to give the image output that special uniqueness.","imajinn-ai"))),(0,i.createElement)("h3",null,(0,a.__)("Image Ratio","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("You can control the output ratio of the generated images. Square images are the default, while rectangular images have more pixels and take much longer to process.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The AI model was trained on square images, so depending on the prompt rectangular images may produce strange results such as duplication of the main subject. For example a rectangular image of a person may produce two of the same person, or multiple mouths on the same face. So it may require more prompt editing and generation attempts to get the desired result. Rectangular images are best used for landscapes, scenes, and other objects that do not have a singular main subject.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Saving Images","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Imajinn AI allows you to save images to your media library, and optionally insert them into your post/page. You can save images by clicking on the save button in the bottom left corner of each image generation. You can insert images into the editor in the same location as the Imajinn block by clicking on the insert button in the bottom right corner. Inserting an image also saves it to your media library, so you don't need to choose both.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Credits","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("When you first signup for Imajinn AI, you get a chunk of free credits. You can use these credits to generate images and get a feel for how the plugin functions and learn how to write effective prompts. If you run out, you can purchase more credits from the Imajinn AI website via our plans.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Each prompt generation uses one credit, and creates four images that you can choose to save and/or insert into your content. There is no limit to the number of images you can save.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Filters and Restrictions","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To ensure that the images generated are appropriate for all audiences, we have a set of filters and restrictions that are applied to prompts and the image outputs. We block the use of specific words and phrases in prompts, and we scan all generations with an AI moderation filter to block images that appear to contain nudity, or other inappropriate content.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Depending on your prompt construction, it can be a fairly common occurrence for it to detect a potentially inappropriate image. If this happens, you will see a warning message. You can either change your prompt, or try generating again. We currently don't charge credits for images that are blocked by the filter, but may need to change this policy in the future. We monitor prompt violations and if we find that you are purposely using inappropriate prompts and attempting to bypass our restrictions, we may disable your account.","imajinn-ai")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}function w(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.Button,{onClick:()=>r(!0)},e.buttonLabel||(0,a.__)("License / Restrictions","imajinn-ai")),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"800px"},icon:(0,i.createElement)(o.Icon,{icon:(0,i.createElement)(o.Icon,{icon:y})}),title:(0,a.__)("License / Usage Restrictions","imajinn-ai")}),(0,i.createElement)("p",null,"CreativeML Open RAIL-M dated August 22, 2022"),(0,i.createElement)("p",null,"Section I: PREAMBLE"),(0,i.createElement)("p",null,"Multimodal generative models are being widely adopted and used, and have the potential to transform the way artists, among other individuals, conceive and benefit from AI or ML technologies as a tool for content creation."),(0,i.createElement)("p",null,"Notwithstanding the current and potential benefits that these artifacts can bring to society at large, there are also concerns about potential misuses of them, either due to their technical limitations or ethical considerations."),(0,i.createElement)("p",null,"In short, this license strives for both the open and responsible downstream use of the accompanying model. When it comes to the open character, we took inspiration from open source permissive licenses regarding the grant of IP rights. Referring to the downstream responsible use, we added use-based restrictions not permitting the use of the Model in very specific scenarios, in order for the licensor to be able to enforce the license in case potential misuses of the Model may occur. At the same time, we strive to promote open and responsible research on generative models for art and content generation."),(0,i.createElement)("p",null,"Even though downstream derivative versions of the model could be released under different licensing terms, the latter will always have to include - at minimum - the same use-based restrictions as the ones in the original license (this license). We believe in the intersection between open and responsible AI development; thus, this License aims to strike a balance between both in order to enable responsible open-science in the field of AI."),(0,i.createElement)("p",null,"This License governs the use of the model (and its derivatives) and is informed by the model card associated with the model."),(0,i.createElement)("p",null,"NOW THEREFORE, You and Licensor agree as follows:"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,(0,i.createElement)("p",null,"Definitions")),(0,i.createElement)("li",null,(0,i.createElement)("p",null,'"License" means the terms and conditions for use, reproduction, and Distribution as defined in this document.')),(0,i.createElement)("li",null,'"Data" means a collection of information and/or content extracted from the dataset used with the Model, including to train, pretrain, or otherwise evaluate the Model. The Data is not licensed under this License.'),(0,i.createElement)("li",null,'"Output" means the results of operating a Model as embodied in informational content resulting therefrom.'),(0,i.createElement)("li",null,'"Model" means any accompanying machine-learning based assemblies (including checkpoints), consisting of learnt weights, parameters (including optimizer states), corresponding to the model architecture as embodied in the Complementary Material, that have been trained or tuned, in whole or in part on the Data, using the Complementary Material.'),(0,i.createElement)("li",null,'"Derivatives of the Model" means all modifications to the Model, works based on the Model, or any other model which is created or initialized by transfer of patterns of the weights, parameters, activations or output of the Model, to the other model, in order to cause the other model to perform similarly to the Model, including - but not limited to - distillation methods entailing the use of intermediate data representations or methods based on the generation of synthetic data by the Model for training the other model.'),(0,i.createElement)("li",null,'"Complementary Material" means the accompanying source code and scripts used to define, run, load, benchmark or evaluate the Model, and used to prepare data for training or evaluation, if any. This includes any accompanying documentation, tutorials, examples, etc, if any.'),(0,i.createElement)("li",null,'"Distribution" means any transmission, reproduction, publication or other sharing of the Model or Derivatives of the Model to a third party, including providing the Model as a hosted service made available by electronic or other remote means - e.g. API-based or web access.'),(0,i.createElement)("li",null,'"Licensor" means the copyright owner or entity authorized by the copyright owner that is granting the License, including the persons or entities that may have rights in the Model and/or distributing the Model.'),(0,i.createElement)("li",null,'"You" (or "Your") means an individual or Legal Entity exercising permissions granted by this License and/or making use of the Model for whichever purpose and in any field of use, including usage of the Model in an end-use application - e.g. chatbot, translator, image generator.'),(0,i.createElement)("li",null,'"Third Parties" means individuals or legal entities that are not under common control with Licensor or You.'),(0,i.createElement)("li",null,'"Contribution" means any work of authorship, including the original version of the Model and any modifications or additions to that Model or Derivatives of the Model thereof, that is intentionally submitted to Licensor for inclusion in the Model by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Model, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."'),(0,i.createElement)("li",null,'"Contributor" means Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Model.')),(0,i.createElement)("p",null,"Section II: INTELLECTUAL PROPERTY RIGHTS"),(0,i.createElement)("p",null,"Both copyright and patent grants apply to the Model, Derivatives of the Model and Complementary Material. The Model and Derivatives of the Model are subject to additional terms as described in Section III."),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare, publicly display, publicly perform, sublicense, and distribute the Complementary Material, the Model, and Derivatives of the Model."),(0,i.createElement)("li",null,"Grant of Patent License. Subject to the terms and conditions of this License and where and as applicable, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this paragraph) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Model and the Complementary Material, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Model to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Model and/or Complementary Material or a Contribution incorporated within the Model and/or Complementary Material constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for the Model and/or Work shall terminate as of the date such litigation is asserted or filed.")),(0,i.createElement)("p",null,"Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Distribution and Redistribution. You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications, provided that You meet the following conditions: Use-based restrictions as referenced in paragraph 5 MUST be included as an enforceable provision by You in any type of legal agreement (e.g. a license) governing the use and/or distribution of the Model or Derivatives of the Model, and You shall give notice to subsequent users You Distribute to, that the Model or Derivatives of the Model are subject to paragraph 5. This provision does not apply to the use of Complementary Material. You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License; You must cause any modified files to carry prominent notices stating that You changed the files; You must retain all copyright, patent, trademark, and attribution notices excluding those notices that do not pertain to any part of the Model, Derivatives of the Model. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions - respecting paragraph 4.a. - for use, reproduction, or Distribution of Your modifications, or for any such Derivatives of the Model as a whole, provided Your use, reproduction, and Distribution of the Model otherwise complies with the conditions stated in this License."),(0,i.createElement)("li",null,"Use-based restrictions. The restrictions set forth in Attachment A are considered Use-based restrictions. Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses. You may use the Model subject to this License, including only for lawful purposes and in accordance with the License. Use may include creating any content with, finetuning, updating, running, training, evaluating and/or reparametrizing the Model. You shall require all of Your users who use the Model or a Derivative of the Model to comply with the terms of this paragraph (paragraph 5)."),(0,i.createElement)("li",null,"The Output You Generate. Except as set forth herein, Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses. No use of the output can contravene any provision as stated in the License.")),(0,i.createElement)("p",null,"Section IV: OTHER PROVISIONS"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Updates and Runtime Restrictions. To the maximum extent permitted by law, Licensor reserves the right to restrict (remotely or otherwise) usage of the Model in violation of this License, update the Model through electronic means, or modify the Output of the Model based on updates. You shall undertake reasonable efforts to use the latest version of the Model."),(0,i.createElement)("li",null,"Trademarks and related. Nothing in this License permits You to make use of Licensors’ trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between the parties; and any rights not expressly granted herein are reserved by the Licensors."),(0,i.createElement)("li",null,'Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Model and the Complementary Material (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Model, Derivatives of the Model, and the Complementary Material and assume any risks associated with Your exercise of permissions under this License.'),(0,i.createElement)("li",null,"Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Model and the Complementary Material (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages."),(0,i.createElement)("li",null,"Accepting Warranty or Additional Liability. While redistributing the Model, Derivatives of the Model and the Complementary Material thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability."),(0,i.createElement)("li",null,"If any provision of this License is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.")),(0,i.createElement)("p",null,"END OF TERMS AND CONDITIONS"),(0,i.createElement)("p",null,"Attachment A"),(0,i.createElement)("p",null,"Use Restrictions"),(0,i.createElement)("p",null,"You agree not to use the Model or Derivatives of the Model:"),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,"In any way that violates any applicable national, federal, state, local or international law or regulation;"),(0,i.createElement)("li",null,"For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;"),(0,i.createElement)("li",null,"To generate or disseminate verifiably false information and/or content with the purpose of harming others;"),(0,i.createElement)("li",null,"To generate or disseminate personal identifiable information that can be used to harm an individual;"),(0,i.createElement)("li",null,"To defame, disparage or otherwise harass others;"),(0,i.createElement)("li",null,"For fully automated decision making that adversely impacts an individual’s legal rights or otherwise creates or modifies a binding, enforceable obligation;"),(0,i.createElement)("li",null,"For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;"),(0,i.createElement)("li",null,"To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;"),(0,i.createElement)("li",null,"For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories;"),(0,i.createElement)("li",null,"To provide medical advice and medical results interpretation;"),(0,i.createElement)("li",null,"To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}var E=n.p+"images/imajinn-demo.6ce7fccc.jpg";function x(e){const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(null),[s,c]=(0,i.useState)(null),[u,m]=(0,i.useState)(IMAJINN.email),[d,h]=(0,i.useState)(""),[p,g]=(0,i.useState)(!1),[f,y]=(0,i.useState)(!1);if(e.isConnected)return null;const v=e=>e.target.select();return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("img",{src:E,alt:(0,a.__)("Example images generated by Imajinn AI","imajinn-ai"),style:{width:"100%"}}),(0,i.createElement)("p",null,(0,a.__)("We hope you are excited to turn your imagination into creative media for your WordPress site. To get started please create a free account or login with your existing Infinite Uploads/Imajinn credentials and we'll connect your site to our cloud.","imajinn-ai")),(0,i.createElement)((()=>r?(0,i.createElement)(o.Notice,{status:"warning"},(0,i.createElement)(o.__experimentalText,null,r,"incorrect_password"===s&&(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/wp-login.php?action=lostpassword",target:"_blank"},(0,a.__)("Reset Password","imajinn-ai")))):null),null),(0,i.createElement)(o.__experimentalHeading,{as:"label"},(0,a.__)("Register / Login","imajinn-ai")),(0,i.createElement)(o.Flex,{align:"bottom",wrap:"true",className:"connect-wrapper"},(0,i.createElement)(o.FlexItem,null,(0,i.createElement)(o.TextControl,{label:(0,a.__)("Email","imajinn-ai"),type:"email",value:u,onFocus:v,onChange:e=>m(e),help:(0,a.__)("You'll need a valid email to enable your credits.","imajinn-ai")}),(0,i.createElement)(o.TextControl,{label:(0,a.__)("Password","imajinn-ai"),type:"password",autoComplete:"off",value:d,onFocus:v,onChange:e=>h(e)})),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)(o.CheckboxControl,{label:(0,a.__)("I agree to the Terms of Service and Usage Restrictions:","imajinn-ai"),checked:f,value:"1",onChange:e=>y(e)}),(0,i.createElement)("div",{className:"license-links"},(0,i.createElement)(w,{buttonLabel:(0,a.__)("Usage Restrictions","imajinn-ai")}),(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/terms-of-service/",target:"_blank"},(0,a.__)("Terms of Service","imajinn-ai")),(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/privacy/",target:"_blank"},(0,a.__)("Privacy Policy","imajinn-ai"))),(0,i.createElement)(o.CheckboxControl,{label:(0,a.__)("Notify me about usage tips & new features (unsubscribe anytime)","imajinn-ai"),checked:p,value:"1",onChange:e=>g(e)})),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((()=>t?(0,i.createElement)(o.Button,{className:"connect-button",disabled:!0},(0,i.createElement)(o.Spinner,null)):(0,i.createElement)(o.Button,{className:"connect-button",variant:"primary",disabled:t,onClick:()=>{n(!0),l(null),fetch(`${ajaxurl}?action=imajinn-connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u,password:d,signup_tos:f,signup_newsletter:p,nonce:IMAJINN.nonce})}).then((e=>e.json())).then((t=>{console.log(t),t.success?(e.setIsConnected(!0),IMAJINN.connected=!0,e.setCredits(t.data.remaining_credits)):(n(!1),c(t.data[0].code),l(t.data[0].message))})).catch((e=>{n(!1),l(e)}))}},(0,a.__)("Connect","imajinn-ai"))),null))))}var j={styles:[{id:"photography, photorealistic, DSLR, canon50",name:(0,a.__)("Photography","imajinn-ai"),children:[{id:"photography, photo realistic, DSLR, canon50",name:(0,a.__)("Realistic","imajinn-ai")},{id:"Portrait photograph, bokeh, dof, canon50",name:(0,a.__)("Portrait","imajinn-ai")},{id:"polaroid photograph",name:(0,a.__)("Polaroid","imajinn-ai")},{id:"war photography, WWI photograph, WWII photograph",name:(0,a.__)("War","imajinn-ai")},{id:"Wildlife Photography, national geographic photo, zoom",name:(0,a.__)("Wildlife","imajinn-ai")},{id:"Photojournalism, award winning",name:(0,a.__)("Photojournalism","imajinn-ai")},{id:"macro photograph",name:(0,a.__)("Macro","imajinn-ai")},{id:"long exposure, photograph, realistic",name:(0,a.__)("Long Exposure","imajinn-ai")},{id:"fish eye lense, wide-angle",name:(0,a.__)("Fish Eye","imajinn-ai")}]},{id:"painting, digital art, trending on artstation",name:(0,a.__)("Painting","imajinn-ai"),children:[{id:"digital art, trending on artstation, hd",name:(0,a.__)("Digital Art","imajinn-ai")},{id:"oil painting, award winning",name:(0,a.__)("Oil Painting","imajinn-ai")},{id:"watercolor painting",name:(0,a.__)("Watercolor","imajinn-ai")},{id:"acrylic painting, award winning art, trending",name:(0,a.__)("Acrylic","imajinn-ai")},{id:"airbrush art",name:(0,a.__)("Airbrushed","imajinn-ai")},{id:"comic, comic book",name:(0,a.__)("Comic Book","imajinn-ai")},{id:"schematic blueprint",name:(0,a.__)("Blueprint","imajinn-ai")},{id:"made up of ink dots, artistic drawing, trending on artstation",name:(0,a.__)("Ink Dot","imajinn-ai")}]},{id:"artistic drawing, trending on artstation",name:(0,a.__)("Drawing","imajinn-ai"),children:[{id:"illustration, trending on artstation",name:(0,a.__)("Illustration","imajinn-ai")},{id:"cyberpunk, trending on artstation",name:(0,a.__)("Cyberpunk","imajinn-ai")},{id:"pencil sketch, drawing, trending on artstation",name:(0,a.__)("Pencil","imajinn-ai")},{id:"drawn in blue biro pen, artistic drawing, trending on artstation",name:(0,a.__)("Pen","imajinn-ai")},{id:"Ink dripping drawing, trending on artstation",name:(0,a.__)("Ink","imajinn-ai")},{id:"caligraphy",name:(0,a.__)("Caligraphy","imajinn-ai")},{id:"charcoal shaded, artistic drawing, trending on artstation",name:(0,a.__)("Charcoal","imajinn-ai")},{id:"cartoon",name:(0,a.__)("Cartoon","imajinn-ai")},{id:"comic, comic book",name:(0,a.__)("Comic Book","imajinn-ai")},{id:"schematic blueprint",name:(0,a.__)("Blueprint","imajinn-ai")},{id:"technical sketch",name:(0,a.__)("Technical Sketch","imajinn-ai")},{id:"made up of ink dots, artistic drawing, trending on artstation",name:(0,a.__)("Ink Dot","imajinn-ai")},{id:"line art",name:(0,a.__)("Line Art","imajinn-ai")},{id:"crayon drawing",name:(0,a.__)("Crayon","imajinn-ai")},{id:"pastel drawing, artistic",name:(0,a.__)("Pastel","imajinn-ai")},{id:"chalkboard drawing",name:(0,a.__)("Chalkboard","imajinn-ai")}]},{id:"animation",name:(0,a.__)("Animation","imajinn-ai"),children:[{id:"vintage disney animation",name:(0,a.__)("Vintage Disney","imajinn-ai")},{id:"Rendered by octane, disney animation studios",name:(0,a.__)("Disney Animation","imajinn-ai")},{id:"simpsons style animation",name:(0,a.__)("Simpsons","imajinn-ai")},{id:"anime style, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, trending on artstation",name:(0,a.__)("Anime","imajinn-ai")},{id:"pixar 3D animation",name:(0,a.__)("Pixar","imajinn-ai")}]},{id:"unreal engine, 3d render, Rendered by octane",name:(0,a.__)("Screen","imajinn-ai"),children:[{id:"Unreal Engine, Cinema 4D",name:(0,a.__)("Video Game HD","imajinn-ai")},{id:"animal crossing, mario, nintendo, pokemon",name:(0,a.__)("Nintendo","imajinn-ai")},{id:"3D render, composite",name:(0,a.__)("3D Render","imajinn-ai")},{id:"8bit graphics",name:(0,a.__)("8bit","imajinn-ai")},{id:"emoji",name:(0,a.__)("Emoji","imajinn-ai")},{id:"low poly ps1 graphics",name:(0,a.__)("Low Poly","imajinn-ai")},{id:"pixel art",name:(0,a.__)("Pixel Art","imajinn-ai")},{id:"ASCII art",name:(0,a.__)("ASCII","imajinn-ai")}]},{id:"realistic",name:(0,a.__)("Real Life Materials","imajinn-ai"),children:[{children:[{id:"marble statue",name:(0,a.__)("Marble","imajinn-ai")},{id:"stone statue",name:(0,a.__)("stone","imajinn-ai")},{id:"statue carved from wax",name:(0,a.__)("Wax","imajinn-ai")}],id:"statue",name:(0,a.__)("Statue","imajinn-ai")},{id:"origami paper folding",name:(0,a.__)("Origami","imajinn-ai")},{id:"paper mache art",name:(0,a.__)("Paper Mache","imajinn-ai")},{id:"paper cutout art",name:(0,a.__)("Paper Cutout","imajinn-ai")},{id:"graffiti street art",name:(0,a.__)("Graffiti","imajinn-ai")},{id:"halftone print",name:(0,a.__)("Halftone","imajinn-ai")},{id:"cross stitch art",name:(0,a.__)("Cross Stitch","imajinn-ai")},{id:"stained glass",name:(0,a.__)("Stained Glass","imajinn-ai")},{id:"made of crystals",name:(0,a.__)("Crystal","imajinn-ai")},{id:"made of flowers",name:(0,a.__)("Flowery","imajinn-ai")}]}],artists:[{value:"",label:(0,a.__)("No Artist","imajinn-ai")},{value:"by Albert Bierstadt",label:(0,a.__)("Albert Bierstadt","imajinn-ai")},{value:"by Andy Warhol",label:(0,a.__)("Andy Warhol","imajinn-ai")},{value:"by Asaf Hanuka",label:(0,a.__)("Asaf Hanuka","imajinn-ai")},{value:"by Aubrey Beardsley",label:(0,a.__)("Aubrey Beardsley","imajinn-ai")},{value:"by Claude Monet",label:(0,a.__)("Claude Monet","imajinn-ai")},{value:"by Diego Rivera",label:(0,a.__)("Diego Rivera","imajinn-ai")},{value:"by Frida Kahlo",label:(0,a.__)("Frida Kahlo","imajinn-ai")},{value:"by Greg Rutkowski",label:(0,a.__)("Greg Rutkowski","imajinn-ai")},{value:"by Hayao Miyazaki",label:(0,a.__)("Hayao Miyazaki","imajinn-ai")},{value:"by Hieronymus Bosch",label:(0,a.__)("Hieronymus Bosch","imajinn-ai")},{value:"by Jackson Pollock",label:(0,a.__)("Jackson Pollock","imajinn-ai")},{value:"by Leonardo da Vinci",label:(0,a.__)("Leonardo da Vinci","imajinn-ai")},{value:"by Michelangelo",label:(0,a.__)("Michelangelo","imajinn-ai")},{value:"by Pablo Picasso",label:(0,a.__)("Pablo Picasso","imajinn-ai")},{value:"by Salvador Dali",label:(0,a.__)("Salvador Dali","imajinn-ai")},{value:"by artgerm, art germ",label:(0,a.__)("Stanley Artgerm","imajinn-ai")},{value:"by Vincent van Gogh",label:(0,a.__)("Vincent van Gogh","imajinn-ai")}],modifiers:[{value:"",label:(0,a.__)("No Modifier","imajinn-ai")},{value:"in the style of steampunk",label:(0,a.__)("Steampunk","imajinn-ai")},{value:"synthwave",label:(0,a.__)("Synthwave","imajinn-ai")},{value:"in the style of cyberpunk",label:(0,a.__)("Cyberpunk","imajinn-ai")},{value:"insanely detailed and intricate, hypermaximalist, elegant, ornate, hyper realistic, super detailed",label:(0,a.__)("Detailed & Intricate","imajinn-ai")},{value:"n a symbolic and meaningful style, insanely detailed and intricate, hypermaximalist, elegant, ornate, hyper realistic, super detailed",label:(0,a.__)("Symbolic & Meaningful","imajinn-ai")},{value:"Cinematic Lighting",label:(0,a.__)("Cinematic Lighting","imajinn-ai")},{value:"Contre-Jour",label:(0,a.__)("Contre-Jour","imajinn-ai")},{value:"futuristic",label:(0,a.__)("Futuristic","imajinn-ai")},{value:"black and white",label:(0,a.__)("Black & White","imajinn-ai")},{value:"technicolor",label:(0,a.__)("Technicolor","imajinn-ai")},{value:"warm color palette",label:(0,a.__)("Warm","imajinn-ai")},{value:"neon",label:(0,a.__)("Neon","imajinn-ai")},{value:"colorful",label:(0,a.__)("Colorful","imajinn-ai")}]};(0,e.registerBlockType)(g,{edit:function(){const[e,n]=(0,i.useState)(IMAJINN.connected),[l,y]=(0,i.useState)(!1),[v,E]=(0,i.useState)(null),[k,C]=(0,i.useState)(null),[M,I]=(0,i.useState)([]),[S,A]=(0,i.useState)(IMAJINN.history),[L,N]=(0,i.useState)(null),[T,P]=(0,i.useState)(0),[B,D]=(0,i.useState)(""),[R,O]=(0,i.useState)(""),[F,Y]=(0,i.useState)("1:1"),[z,W]=(0,i.useState)(F),[G,V]=(0,i.useState)(IMAJINN.remaining_credits),[J,U]=(0,i.useState)(!1),[H,q]=(0,i.useState)(""),[$,Z]=(0,i.useState)(""),[K,Q]=(0,i.useState)(""),[X,ee]=(0,i.useState)([]);(0,i.useEffect)((()=>{IMAJINN.remaining_credits=G,G>0&&U(!1)}),[G]),(0,i.useEffect)((()=>{IMAJINN.history=S}),[S]),(0,i.useEffect)((()=>{O([B,H,$,K].filter(Boolean).join(", "))}),[B,H,$,K]);const te=(0,r.useBlockProps)(),ne=()=>{if(G<=0&&ae(),G-1<=0)return U(!0),!1;C(null),I([]),ee([]),W(F),y(!0),E(null),P(0),fetch(`${ajaxurl}?action=imajinn-start-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:R,ratio:F,num_variations:4,nonce:IMAJINN.nonce})}).then((e=>e.json())).then((e=>{e.success?(C(e.data.job_id),N(e.data.status),V(e.data.remaining_credits),P(e.data.progress),ie(e.data.job_id)):(y(!1),C(null),N(null),E(e.data[0].message))})).catch((e=>{y(!1),C(null),N(null),E(e)}))},ie=async e=>{if(!e)return y(!1),C(null),!1;setTimeout((async()=>{const t=await fetch(`${ajaxurl}?action=imajinn-check-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({job_id:e,nonce:IMAJINN.nonce})}),n=await t.json();n.success?(N(n.data.status),P(n.data.progress),V(n.data.remaining_credits),"succeeded"===n.data.status?(I(n.data.generations),A((e=>[{prompt:R,ratio:F,generations:n.data.generations},...e]))):"failed"===n.data.status&&(E(n.data.error),N(null),y(!1),C(null)),"starting"===n.data.status||"processing"===n.data.status?ie(e):(N(null),y(!1),C(null))):(N(null),y(!1),C(null),E(n.data[0].message))}),4e3)},ae=async()=>{const e=await fetch(`${ajaxurl}?action=imajinn-refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nonce:IMAJINN.nonce})}),t=await e.json();t.success?V(t.data.remaining_credits):E(t.data[0].message)},re=async e=>{let t=M[e].jpg;const n=await fetch(`${ajaxurl}?action=imajinn-save-image`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t,prompt:R,post_id:wp.data.select("core/editor").getCurrentPostId(),nonce:IMAJINN.nonce})}),i=await n.json();return!!i.success&&(ee((t=>[...t,{index:e,data:i.data}])),wp.data.dispatch("core/notices").createNotice("success",(0,a.__)("Image saved to media library.","imajinn-ai"),{type:"snackbar",isDismissible:!0,actions:[]}),i.data)},oe=e=>{const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{X.some((t=>t.index===e.genindex))?(l(!0),n(!1)):(l(!1),n(!1))}),[X]),r?(0,i.createElement)(o.Button,{disabled:!0,icon:u},(0,a.__)("Saved","imajinn-ai")):t?(0,i.createElement)(o.Button,{disabled:!0},(0,i.createElement)(o.Spinner,null)," ",(0,a.__)("Saving","imajinn-ai")):(0,i.createElement)(o.Button,{variant:IMAJINN.custom_editor?"primary":"secondary",disabled:t,icon:m,onClick:async()=>{n(!0),await re(e.genindex)||n(!1)}},(0,a.__)("Save","imajinn-ai"))},le=e=>{const[t,n]=(0,i.useState)(!1);return t?(0,i.createElement)(o.Button,{disabled:!0},(0,i.createElement)(o.Spinner,null)):(0,i.createElement)(o.Button,{variant:"primary",className:"imajinn-image-insert",disabled:t,icon:d,onClick:async()=>{n(!0),await(async e=>{let t=!1;if(t=X.some((t=>t.index===e))?X.find((t=>t.index===e)).data:await re(e),t){const e=wp.data.select("core/block-editor").getBlocks().map((function(e){return"imajinn-ai/text2image"==e.name})).indexOf(!0),n=wp.blocks.createBlock("core/image",{id:t.attachment_id,url:t.url,width:t.width,height:t.height,sizeSlug:t.size,alt:R,title:R});return wp.data.dispatch("core/block-editor").insertBlocks(n,e),!0}return!1})(e.genindex)||n(!1)}},(0,a.__)("Insert","imajinn-ai"))},se=e=>{let{...t}=e;return IMAJINN.custom_editor?(0,i.createElement)(o.CardFooter,null,(0,i.createElement)(o.Button,{href:`${ajaxurl}?action=imajinn-tweet&image=${t.src}`,target:"_blank",icon:(0,i.createElement)(o.Dashicon,{icon:"twitter"}),label:(0,a.__)("Share on Twitter","imajinn-ai")}),(0,i.createElement)(oe,t)):(0,i.createElement)(o.CardFooter,null,(0,i.createElement)(oe,t),(0,i.createElement)(o.Button,{href:`${ajaxurl}?action=imajinn-tweet&image=${t.src}`,target:"_blank",icon:(0,i.createElement)(o.Dashicon,{icon:"twitter"}),label:(0,a.__)("Share on Twitter","imajinn-ai")}),(0,i.createElement)(le,t))},ce=e=>{let{...n}=e;return(0,i.createElement)(o.Card,null,(0,i.createElement)(o.CardMedia,{style:{width:n.width,height:n.height}},(0,i.createElement)("img",t({className:"generation-zoom",alt:n.alt||n.label},n))),(0,i.createElement)(se,n))},ue=M.length?"":g.description;return(0,i.createElement)("figure",te,(0,i.createElement)((t=>{const[n,l]=(0,i.useState)(!1),[s,c]=(0,i.useState)("refreshing-button");return(0,i.useEffect)((()=>{c(n?"refreshing-button is-refreshing":"refreshing-button")}),[n]),(0,i.createElement)(r.BlockControls,null,(0,i.createElement)(o.Toolbar,{label:(0,a.__)("Imajinn AI","imajinn-ai"),className:"imajinn-toolbar"},(0,i.createElement)(o.ToolbarGroup,null,e&&!1!==G&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"credit-label"},(0,a.__)("Credits:","imajinn-ai")),(0,i.createElement)("div",{className:"credits"},G),(0,i.createElement)(o.ToolbarButton,{className:s,disabled:n,icon:(0,i.createElement)(o.Dashicon,{icon:"update"}),label:(0,a.__)("Refresh count","imajinn-ai"),onClick:async()=>{l(!0),await ae(),l(!1)}})),(0,i.createElement)(_,null))))}),null),(0,i.createElement)((e=>{if(e.history<=0)return null;const t=e.history.map(((e,t)=>(0,i.createElement)(o.PanelBody,{key:t},(0,i.createElement)("h2",{className:"components-panel__body-title"},e.generations.map(((e,t)=>(0,i.createElement)("img",{key:t,src:e.thumbnail,alt:(0,a.sprintf)((0,a.__)("Result %d","imajinn-ai"),(t+1).toString())}))),(0,i.createElement)(o.Button,{variant:"secondary",label:(0,a.__)("Load prompt results","imajinn-ai"),onClick:()=>{D(e.prompt),I(e.generations),Y(e.ratio),W(e.ratio),q(""),Z(""),Q("")}},(0,a.__)("Load","imajinn-ai"))),(0,i.createElement)(o.PanelRow,null,(0,i.createElement)(o.__experimentalText,{numberOfLines:2,truncate:!0},e.prompt)))));return(0,i.createElement)(r.InspectorControls,{key:"setting"},(0,i.createElement)(o.Panel,{header:(0,a.__)("Generation History","imajinn-ai"),className:"imajinn-history"},t))}),{history:S}),(0,i.createElement)(o.Placeholder,{icon:IMAJINN.custom_editor?null:f.mC,instructions:ue,label:IMAJINN.custom_editor?null:(0,a.__)("AI Text-to-Image Generator","imajinn-ai")},!e&&(0,i.createElement)(x,{setCredits:V,isConnected:e,setIsConnected:n}),e&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)((()=>v?(0,i.createElement)(o.Notice,{status:"warning"},(0,i.createElement)(o.__experimentalText,null,v)):null),null),(0,i.createElement)((()=>{const e="processing"===L?(0,a.sprintf)((0,a.__)("Generating %s%%","imajinn-ai"),T):(0,a.__)("Queued","imajinn-ai");return l?(0,i.createElement)("div",{className:"imajinn-loading"},(0,i.createElement)(f.ZZ,null),(0,i.createElement)("div",null,(0,i.createElement)(o.__experimentalText,null,e),(0,i.createElement)(o.Button,{isDestructive:!0,variant:"link",onClick:()=>{(async()=>{if(!k)return E("Error: No job id"),!1;const e=await fetch(`${ajaxurl}?action=imajinn-cancel-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({job_id:k,nonce:IMAJINN.nonce})}),t=await e.json();t.success?(N(null),y(!1),C(null),V(t.data.remaining_credits)):E(t.data[0].message)})()}},(0,a.__)("Cancel")))):null}),null),(0,i.createElement)((e=>{let{...n}=e;const[a,r]=(0,i.useState)("400px"),[l,s]=(0,i.useState)("400px");if((0,i.useEffect)((()=>{r(1===M.length?"400px":"300px"),"3:2"===z?s(1===M.length?"266px":"200px"):"2:3"===z?(s("450px"),r("300px")):s(1===M.length?"400px":"300px")}),[M,z]),0===M.length)return null;const c=M.map(((e,t)=>(0,i.createElement)(o.FlexBlock,{style:{minWidth:a,flexGrow:0},key:t.toString()},(0,i.createElement)(ce,{src:e.preview,genindex:t,width:a,height:l,label:"Result "+(t+1).toString()}))));return(0,i.createElement)(o.Flex,t({},n,{align:"center",wrap:"true",gap:0,justify:"space-around",className:"results-grid"}),c)}),null),(0,i.createElement)("div",{className:"prompt-form"},(0,i.createElement)(o.TextareaControl,{disabled:l,maxLength:450,value:B,label:(0,i.createElement)(i.Fragment,null,(0,a.__)("Prompt - Enter a detailed English description of the image you would like to generate.","imajinn-ai"),(0,i.createElement)(b,null)),className:"text-prompt",onChange:e=>D(e)}),(0,i.createElement)("div",{className:"styles-form"},(0,i.createElement)((e=>(0,i.createElement)(o.TreeSelect,{disabled:l,label:(0,a.__)("Select an image style","imajinn-ai"),noOptionLabel:(0,a.__)("No Style","imajinn-ai"),selectedId:H,onChange:e=>{q(e)},__next36pxDefaultSize:!0,tree:j.styles})),null),(0,i.createElement)((e=>(0,i.createElement)(o.SelectControl,{__next36pxDefaultSize:!0,allowReset:!0,disabled:l,label:(0,a.__)("Select an Artist style to mimic","imajinn-ai"),value:$,onChange:e=>{Z(e)},options:j.artists})),null),(0,i.createElement)((e=>(0,i.createElement)(o.SelectControl,{__next36pxDefaultSize:!0,allowReset:!0,disabled:l,label:(0,a.__)("Select a style modifier","imajinn-ai"),value:K,onChange:e=>{Q(e)},options:j.modifiers})),null),(0,i.createElement)(o.Button,{icon:h,disabled:l,label:(0,a._x)("Clear styles","clear the image style selects","imajinn-ai"),onClick:()=>{q(""),Z(""),Q("")}}))),(0,i.createElement)(o.Flex,{align:"top",wrap:"true"},(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((()=>{const e={"1:1":(0,a.__)("Square","imajinn-ai"),"3:2":(0,a.__)("Wide","imajinn-ai"),"2:3":(0,a.__)("Tall","imajinn-ai")}[F]+" images"+("1:1"!==F?" - "+(0,a.__)("slower to generate","imajinn-ai"):"");return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.__experimentalRadioGroup,{id:"imajinn-ratio",label:(0,a.__)("Select an image ratio to generate.","imajinn-ai"),defaultChecked:"1:1",disabled:l,onChange:Y,checked:F},(0,i.createElement)(o.__experimentalRadio,{value:"1:1",icon:s},"1:1"),(0,i.createElement)(o.__experimentalRadio,{value:"3:2",icon:c},"3:2"),(0,i.createElement)(o.__experimentalRadio,{className:"ratio-3-2",value:"2:3",icon:c},"2:3")),(0,i.createElement)("br",null),(0,i.createElement)(o.__experimentalText,null,e))}),null)),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((e=>(0,i.createElement)(o.Button,{isPrimary:!0,disabled:l,onClick:ne},(0,a.__)("Generate","imajinn-ai"))),null),(0,i.createElement)((e=>{const[n,r]=(0,i.useState)(e.showUpgrade),l=()=>{r(!1),e.setShowUpgrade(!1)};return(0,i.useEffect)((()=>{r(e.showUpgrade)}),[r,e]),(0,i.createElement)(i.Fragment,null,n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"400px"},icon:(0,i.createElement)(o.Icon,{icon:p}),title:(0,a.__)("Upgrade Plan","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)("Sorry, you are out of available image generation credits. You can get more credits by upgrading your account to one of our premium plans.","imajinn-ai")),(0,i.createElement)("div",{className:"imajinn-upgrade-modal-buttons"},(0,i.createElement)(o.Button,{variant:"primary",href:IMAJINN.checkout_url,target:"_blank"},(0,a.__)("Get More Credits","imajinn-ai")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a._x)("Cancel","Don't upgrade now","imajinn-ai")))))}),{showUpgrade:J,setShowUpgrade:U})))),(0,i.createElement)((()=>IMAJINN.custom_editor?null:(0,i.createElement)("div",{className:"corner-controls"},(0,i.createElement)(_,null),(0,i.createElement)(o.Button,{className:"imajinn-close-button",icon:h,label:(0,a.__)("Close Imajinn Block","imajinn-ai"),onClick:()=>{(()=>{const{removeBlocks:e}=wp.data.dispatch("core/block-editor");e(wp.data.select("core/block-editor").getSelectedBlockClientIds())})()}}))),null)),(0,i.createElement)("div",{className:"imajinn-footer"},(0,i.createElement)(o.Button,{onClick:()=>{(async()=>{const e=await fetch(`${ajaxurl}?action=imajinn-account-url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nonce:IMAJINN.nonce})}),t=await e.json();t.success?window.open(t.data.account_url,"_blank"):E(t.data[0].message)})()}},(0,a.__)("Account","imajinn-ai")),(0,i.createElement)(w,null),(0,i.createElement)("a",{href:"https://infiniteuploads.com/support/",target:"_blank"},(0,a.__)("Support","imajinn-ai")),(0,i.createElement)("span",{className:"imajinn-credits"},(0,a._x)("Made with ","Made with love by Infinite Uploads","imajinn-ai"),(0,i.createElement)(o.Dashicon,{icon:"heart","aria-label":(0,a._x)("love","Made with love by Infinite Uploads","imajinn-ai")}),(0,a._x)(" by ","Made with love by Infinite Uploads","imajinn-ai"),(0,i.createElement)("a",{href:"https://infiniteuploads.com/",target:"_blank"},"Infinite Uploads"))))},save:function(){return null},icon:f.DT})}()}();
     1!function(){"use strict";var e={684:function(e,t,n){n.d(t,{DT:function(){return a},ZZ:function(){return o},mC:function(){return r}});var i=n(307);function a(){return(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68.99 99",height:"30",width:"30"},(0,i.createElement)("path",{d:"M65.19,60.78c3.9-3.9,6.19-17.59-.2-23.67-4.3-2.8-10.87,1.08-18.09,.8-.51-.02-1.02,.07-1.49,.26-.67,.28-1.44,.72-2.26,1.42-2.56,2.19-5.99,3.51-8.31,2.21-1.84-1.23-1.39-3.92-1.31-4.32-3.97,.8-4.55-.88-8.17,.24-6.84,2.12-18.72,17.38-9.96,22.27,3.89,1.73,11.79,.79,11.79,.79,0,0,6.33,8.55,.95,12.41-5.03,3.61-9.48-.45-15.51-.97-12.95-1.21-19.27,16.96-2.54,26.78-3.64-6.18-4.42-14.42,3.76-14.42,5.68,0,13.27,8.43,24.48,7.03,9.69-1.21,13.03-5.15,17.38-16.07,2.01-4.71,6.92-10.71,6.92-10.71-6.91,2.54-10.67-.61-14.5-1.96-3.83-1.34-8.87-2.09-8.87-2.09,6.29,0,11.48,2.43,15.72,3.05,4.07,.6,7.6-.43,10.22-3.05Z"}),(0,i.createElement)("path",{d:"M54.55,13.82c-2.78-2.37-5.77-6.73-8.76-7.16-4.03-.58-5.66,1.64-6.51,4.46,0-.19-.01-.38-.03-.57L38.55,.04c0-.05-.08-.05-.08,0l-.88,10.25c-.1,1.36,.04,2.72,.4,4.03l.58,1.15c-.02,.39-.01,.62-.01,.62-1.14,1.24-1.97,3.51-2.59,5.14l.53,1.44s.1,2.24-1.84,4.55c0,0-1.2,1.43-1.34,1.77-.17,.4-.16,.96,.47,1.01,.64,.05,2.02,.23,2.02,.23l-.03,2.06c0,.58,.27,2.39,.42,2.86,.58,1.79,.37,3.29-.15,3.43-1.56,.45-1.92-1.14-1.92-1.14,0,0-1.22,4.58,3.55,3.85,3.06-.47,4.72-4.09,7.57-5.19h0c.18-.07,.36-.1,.55-.11,4.53-.1,7.41-.84,7.93-3.92,4.84-.42,6.65-2.72,7.81-7.44,1.21-4.91-2.73-7.17-7.01-10.81Z"}))}function r(){return(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"55.435381255341",height:"60",viewBox:"0 0 1167.58 1263.72",version:"1.1"},(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:"clip1"},(0,i.createElement)("path",{d:"M 525 1006 L 595 1006 L 595 1263.71875 L 525 1263.71875 Z M 525 1006 "})),(0,i.createElement)("clipPath",{id:"clip2"},(0,i.createElement)("path",{d:"M 1018 1006 L 1167.578125 1006 L 1167.578125 1212 L 1018 1212 Z M 1018 1006 "}))),(0,i.createElement)("g",{id:"surface1"},(0,i.createElement)("path",{d:"M 883.503906 564.917969 C 919.703125 528.71875 941.007813 401.410156 881.6875 344.964844 C 841.726563 318.957031 780.652344 354.957031 713.5625 352.410156 C 708.824219 352.230469 704.105469 353.039063 699.722656 354.847656 C 693.507813 357.414063 686.355469 361.507813 678.730469 368.042969 C 654.972656 388.40625 623.070313 400.625 601.488281 388.585938 C 584.429688 377.132813 588.597656 352.140625 589.332031 348.394531 C 552.476563 355.824219 547.042969 340.191406 513.355469 350.644531 C 449.75 370.382813 339.335938 512.171875 420.820313 557.613281 C 456.992188 573.714844 530.402344 564.917969 530.402344 564.917969 C 530.402344 564.917969 589.253906 644.367188 539.238281 680.246094 C 492.445313 713.808594 451.089844 676.105469 395.078125 671.234375 C 274.757813 660.003906 216.007813 828.910156 371.429688 920.136719 C 337.640625 862.695313 330.320313 786.113281 406.339844 786.113281 C 459.125 786.113281 529.695313 864.453125 633.84375 851.433594 C 723.941406 840.171875 754.910156 803.570313 795.363281 702.039063 C 814.039063 658.285156 859.652344 602.535156 859.652344 602.535156 C 795.457031 626.1875 760.519531 596.839844 724.90625 584.359375 C 689.289063 571.878906 642.421875 564.917969 642.421875 564.917969 C 700.839844 564.917969 749.109375 587.472656 788.523438 593.257813 C 826.324219 598.800781 859.152344 589.269531 883.503906 564.917969 "}),(0,i.createElement)("path",{d:"M 784.621094 128.429688 C 758.757813 106.421875 730.980469 65.921875 703.167969 61.910156 C 665.6875 56.5 650.527344 77.128906 642.636719 103.398438 C 642.59375 101.628906 642.523438 99.859375 642.386719 98.089844 L 635.902344 0.351563 C 635.871094 -0.121094 635.1875 -0.121094 635.15625 0.351563 L 626.976563 95.570313 C 626.089844 108.179688 627.359375 120.851563 630.730469 133.03125 L 636.097656 143.699219 C 635.9375 147.328125 635.964844 149.46875 635.964844 149.46875 C 625.332031 161.011719 617.640625 182.050781 611.933594 197.261719 L 616.851563 210.640625 C 616.851563 210.640625 617.800781 231.441406 599.78125 252.960938 C 599.78125 252.960938 588.667969 266.253906 587.359375 269.429688 C 585.824219 273.152344 585.828125 278.3125 591.742188 278.785156 C 597.652344 279.257813 610.558594 280.914063 610.558594 280.914063 L 610.324219 300.066406 C 610.324219 305.457031 612.859375 322.316406 614.246094 326.636719 C 619.597656 343.292969 617.640625 357.179688 612.886719 358.539063 C 598.386719 362.683594 595.0625 347.902344 595.0625 347.902344 C 595.0625 347.902344 583.699219 390.441406 628.046875 383.652344 C 656.480469 379.300781 671.941406 345.640625 698.414063 335.460938 C 700.050781 334.828125 701.785156 334.496094 703.539063 334.457031 C 745.660156 333.558594 772.402344 326.636719 777.207031 298.027344 C 822.210938 294.09375 838.976563 272.722656 849.785156 228.890625 C 861.050781 183.21875 824.402344 162.28125 784.621094 128.429688 "}),(0,i.createElement)("path",{d:"M 0 1211.832031 L 0 1006.238281 L 14.34375 1006.238281 L 14.34375 1211.832031 L 0 1211.832031 "}),(0,i.createElement)("path",{d:"M 191.785156 1211.832031 L 115.144531 1021.988281 L 114.019531 1021.988281 C 114.769531 1033.609375 115.144531 1045.519531 115.144531 1057.710938 L 115.144531 1211.832031 L 101.363281 1211.832031 L 101.363281 1006.238281 L 123.582031 1006.238281 L 196.425781 1187.082031 L 197.269531 1187.082031 L 270.113281 1006.238281 L 291.769531 1006.238281 L 291.769531 1211.832031 L 277.285156 1211.832031 L 277.285156 1056.019531 C 277.285156 1045.140625 277.847656 1033.890625 278.972656 1022.269531 L 277.847656 1022.269531 L 200.925781 1211.832031 L 191.785156 1211.832031 "}),(0,i.createElement)("path",{d:"M 399.320313 1126.328125 L 472.867188 1126.328125 L 444.882813 1052.21875 C 442.535156 1046.410156 439.722656 1038.351563 436.445313 1028.03125 C 433.914063 1037.03125 431.144531 1045.191406 428.148438 1052.5 Z M 477.648438 1139.269531 L 394.117188 1139.269531 L 365.429688 1211.832031 L 349.539063 1211.832031 L 432.226563 1005.390625 L 441.367188 1005.390625 L 522.367188 1211.832031 L 506.195313 1211.832031 L 477.648438 1139.269531 "}),(0,i.createElement)("g",{clipPath:"url(#clip1)",clipRule:"nonzero"},(0,i.createElement)("path",{d:"M 546.523438 1263.71875 C 537.902344 1263.71875 530.824219 1262.460938 525.289063 1259.921875 L 525.289063 1247.550781 C 532.601563 1249.421875 539.589844 1250.359375 546.242188 1250.359375 C 568.929688 1250.359375 580.273438 1237.988281 580.273438 1213.238281 L 580.273438 1006.238281 L 594.617188 1006.238281 L 594.617188 1211.832031 C 594.617188 1246.421875 578.585938 1263.71875 546.523438 1263.71875 "})),(0,i.createElement)("path",{d:"M 680.230469 1211.832031 L 680.230469 1006.238281 L 694.574219 1006.238281 L 694.574219 1211.832031 L 680.230469 1211.832031 "}),(0,i.createElement)("path",{d:"M 931.078125 1211.832031 L 916.59375 1211.832031 L 794.8125 1029.300781 L 793.6875 1029.300781 C 794.8125 1051.050781 795.375 1067.460938 795.375 1078.519531 L 795.375 1211.832031 L 781.59375 1211.832031 L 781.59375 1006.238281 L 795.9375 1006.238281 L 917.578125 1188.488281 L 918.421875 1188.488281 C 917.578125 1171.609375 917.15625 1155.578125 917.15625 1140.390625 L 917.15625 1006.238281 L 931.078125 1006.238281 L 931.078125 1211.832031 "}),(0,i.createElement)("g",{clipPath:"url(#clip2)",clipRule:"nonzero"},(0,i.createElement)("path",{d:"M 1167.578125 1211.832031 L 1153.101563 1211.832031 L 1031.320313 1029.300781 L 1030.191406 1029.300781 C 1031.320313 1051.050781 1031.878906 1067.460938 1031.878906 1078.519531 L 1031.878906 1211.832031 L 1018.101563 1211.832031 L 1018.101563 1006.238281 L 1032.441406 1006.238281 L 1154.078125 1188.488281 L 1154.929688 1188.488281 C 1154.078125 1171.609375 1153.660156 1155.578125 1153.660156 1140.390625 L 1153.660156 1006.238281 L 1167.578125 1006.238281 L 1167.578125 1211.832031 "}))))}function o(){return(0,i.useEffect)((()=>{var t,i;t=this,i=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}var a=Math.abs;function r(e){return e}function o(e,t,n){var i=1-n;return 3*n*i*(e*i+t*n)+n*n*n}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return e<0||e>1||n<0||n>1?null:a(e-t)<=1e-5&&a(n-i)<=1e-5?r:function(r){if(r<=0)return e>0?r*t/e:0===t&&n>0?r*i/n:0;if(r>=1)return n<1?1+(r-1)*(i-1)/(n-1):1===n&&e<1?1+(r-1)*(t-1)/(e-1):1;for(var l,s=0,c=1;s<c;){var u=o(e,n,l=(s+c)/2);if(a(r-u)<1e-5)break;u<r?s=l:c=l}return o(t,i,l)}}function s(){return 1}function c(e){return 1===e?1:0}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(1===e){if(0===t)return c;if(1===t)return s}var n=1/e;return function(e){return e>=1?1:(e+=t*n)-e%n}}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(Number.isInteger(e))return e;var n=Math.pow(10,t);return Math.round(e*n)/n}var d=Math.PI/180;function h(e,t,n){return e>=.5?n:t}function p(e,t,n){return 0===e||t===n?t:e*(n-t)+t}function g(e,t,n){var i=p(e,t,n);return i<=0?0:i}function f(e,t,n){return 0===e?t:1===e?n:{x:p(e,t.x,n.x),y:p(e,t.y,n.y)}}function y(e,t,n){return 0===e?t:1===e?n:{x:g(e,t.x,n.x),y:g(e,t.y,n.y)}}function v(e,t,n){var i=function(e,t,n){return Math.round(p(e,t,n))}(e,t,n);return i<=0?0:i>=255?255:i}function b(e,t,n){return 0===e?t:1===e?n:{r:v(e,t.r,n.r),g:v(e,t.g,n.g),b:v(e,t.b,n.b),a:p(e,null==t.a?1:t.a,null==n.a?1:n.a)}}function w(e,t,n){if(0===e)return t;if(1===e)return n;var i=t.length;if(i!==n.length)return h(e,t,n);for(var a=[],r=0;r<i;r++)a.push(b(e,t[r],n[r]));return a}function _(e,t,n){var i=t.length;if(i!==n.length)return h(e,t,n);for(var a=new Array(i),r=0;r<i;r++)a[r]=p(e,t[r],n[r]);return a}function E(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function x(e,t){if(--t<=0)return e;var n=(e=Object.assign([],e)).length;do{for(var i=0;i<n;i++)e.push(e[i])}while(--t>0);return e}var j=/\.0+$/g;function k(e){return Number.isInteger(e)?e+"":e.toFixed(6).replace(j,"")}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e&&e.length?e.map(k).join(t):""}function M(e){return k(e.x)+","+k(e.y)}function I(e){return e?null==e.a||e.a>=1?"rgb("+e.r+","+e.g+","+e.b+")":"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":"transparent"}var S={f:null,i:y,u:function(e,t){return function(n){var i=t(n);e.setAttribute("rx",k(i.x)),e.setAttribute("ry",k(i.y))}}},A={f:null,i:function(e,t,n){return 0===e?t:1===e?n:{width:g(e,t.width,n.width),height:g(e,t.height,n.height)}},u:function(e,t){return function(n){var i=t(n);e.setAttribute("width",k(i.width)),e.setAttribute("height",k(i.height))}}},L=Math.sin,N=Math.cos,T=Math.acos,P=Math.asin,B=Math.tan,D=Math.atan2,R=Math.PI/180,O=180/Math.PI,F=Math.sqrt,Y=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;t(this,e),this.m=[n,i,a,r,o,l],this.i=null,this.w=null,this.s=null}return i(e,[{key:"point",value:function(e,t){var n=this.m;return{x:n[0]*e+n[2]*t+n[4],y:n[1]*e+n[3]*t+n[5]}}},{key:"translateSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e&&!t)return this;var n=this.m;return n[4]+=n[0]*e+n[2]*t,n[5]+=n[1]*e+n[3]*t,this.w=this.s=this.i=null,this}},{key:"rotateSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e%=360){var t=L(e*=R),n=N(e),i=this.m,a=i[0],r=i[1];i[0]=a*n+i[2]*t,i[1]=r*n+i[3]*t,i[2]=i[2]*n-a*t,i[3]=i[3]*n-r*t,this.w=this.s=this.i=null}return this}},{key:"scaleSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(1!==e||1!==t){var n=this.m;n[0]*=e,n[1]*=e,n[2]*=t,n[3]*=t,this.w=this.s=this.i=null}return this}},{key:"skewSelf",value:function(e,t){if(t%=360,(e%=360)||t){var n=this.m,i=n[0],a=n[1],r=n[2],o=n[3];e&&(e=B(e*R),n[2]+=i*e,n[3]+=a*e),t&&(t=B(t*R),n[0]+=r*t,n[1]+=o*t),this.w=this.s=this.i=null}return this}},{key:"resetSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=this.m;return o[0]=e,o[1]=t,o[2]=n,o[3]=i,o[4]=a,o[5]=r,this.w=this.s=this.i=null,this}},{key:"recomposeSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return this.isIdentity||this.resetSelf(),e&&(e.x||e.y)&&this.translateSelf(e.x,e.y),t&&this.rotateSelf(t),n&&(n.x&&this.skewSelf(n.x,0),n.y&&this.skewSelf(0,n.y)),!i||1===i.x&&1===i.y||this.scaleSelf(i.x,i.y),a&&(a.x||a.y)&&this.translateSelf(a.x,a.y),this}},{key:"decompose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.m,i=n[0]*n[0]+n[1]*n[1],a=[[n[0],n[1]],[n[2],n[3]]],r=F(i);if(0===r)return{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:0,y:0},skew:{x:0,y:0},rotate:0};a[0][0]/=r,a[0][1]/=r;var o=n[0]*n[3]-n[1]*n[2]<0;o&&(r=-r);var l=a[0][0]*a[1][0]+a[0][1]*a[1][1];a[1][0]-=a[0][0]*l,a[1][1]-=a[0][1]*l;var s=F(a[1][0]*a[1][0]+a[1][1]*a[1][1]);if(0===s)return{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:r,y:0},skew:{x:0,y:0},rotate:0};a[1][0]/=s,a[1][1]/=s,l/=s;var c=0;return a[1][1]<0?(c=T(a[1][1])*O,a[0][1]<0&&(c=360-c)):c=P(a[0][1])*O,o&&(c=-c),l=D(l,F(a[0][0]*a[0][0]+a[0][1]*a[0][1]))*O,{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:r,y:s},skew:{x:l,y:0},rotate:c}}},{key:"toString",value:function(){return null===this.s&&(this.s="matrix("+this.m.map(V).join(" ")+")"),this.s}},{key:"determinant",get:function(){var e=this.m;return e[0]*e[3]-e[1]*e[2]}},{key:"isIdentity",get:function(){if(null===this.i){var e=this.m;this.i=1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]}return this.i}}]),e}(),z=/\.0+$/;function V(e){return Number.isInteger(e)?e:e.toFixed(14).replace(z,"")}function G(e,t,n){return e+(t-e)*n}function W(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a={x:G(e.x,t.x,n),y:G(e.y,t.y,n)};return i&&(a.a=J(e,t)),a}function J(e,t){return Math.atan2(t.y-e.y,t.x-e.x)}function H(e,t,n,i){var a=1-i;return a*a*e+2*a*i*t+i*i*n}function U(e,t,n,i){return 2*(1-i)*(t-e)+2*i*(n-t)}function q(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={x:H(e.x,t.x,n.x,i),y:H(e.y,t.y,n.y,i)};return a&&(r.a=Z(e,t,n,i)),r}function Z(e,t,n,i){return Math.atan2(U(e.y,t.y,n.y,i),U(e.x,t.x,n.x,i))}function $(e,t,n,i,a){var r=a*a;return a*r*(i-e+3*(t-n))+3*r*(e+n-2*t)+3*a*(t-e)+e}function K(e,t,n,i,a){var r=1-a;return 3*(r*r*(t-e)+2*r*a*(n-t)+a*a*(i-n))}function Q(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o={x:$(e.x,t.x,n.x,i.x,a),y:$(e.y,t.y,n.y,i.y,a)};return r&&(o.a=X(e,t,n,i,a)),o}function X(e,t,n,i,a){return Math.atan2(K(e.y,t.y,n.y,i.y,a),K(e.x,t.x,n.x,i.x,a))}function ee(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ne(t)){if(ie(n))return q(t,n.start,n,e,i)}else if(ne(n)){if(t.end)return q(t,t.end,n,e,i)}else{if(t.end)return n.start?Q(t,t.end,n.start,n,e,i):q(t,t.end,n,e,i);if(n.start)return q(t,n.start,n,e,i)}return W(t,n,e,i)}function te(e,t,n){var i=ee(e,t,n,!0);return i.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e+Math.PI:e}(i.a)/d,i}function ne(e){return!e.type||"corner"===e.type}function ie(e){return null!=e.start&&!ne(e)}Object.freeze({M:2,L:2,Z:0,H:1,V:1,C:6,Q:4,T:2,S:4,A:7});var ae=new Y,re={f:function(e){return e?e.join(" "):""},i:function(t,n,i){if(0===t)return n;if(1===t)return i;var a=n.length;if(a!==i.length)return h(t,n,i);for(var r,o=new Array(a),l=0;l<a;l++){if((r=e(n[l]))!==e(i[l]))return h(t,n,i);if("number"===r)o[l]=p(t,n[l],i[l]);else{if(n[l]!==i[l])return h(t,n,i);o[l]=n[l]}}return o}},oe={f:null,i:_,u:function(e,t){return function(n){var i=t(n);e.setAttribute("x1",k(i[0])),e.setAttribute("y1",k(i[1])),e.setAttribute("x2",k(i[2])),e.setAttribute("y2",k(i[3]))}}},le={f:k,i:p},se={f:k,i:function(e,t,n){var i=p(e,t,n);return i<=0?0:i>=1?1:i}},ce={f:C,i:function(e,t,n){var i,a,r,o=t.length,l=n.length;if(o!==l)if(0===o)t=E(o=l,0);else if(0===l)l=o,n=E(o,0);else{var s=(r=(i=o)*(a=l)/function(e,t){for(var n;t;)n=t,t=e%t,e=n;return e||1}(i,a))<0?-r:r;t=x(t,Math.floor(s/o)),n=x(n,Math.floor(s/l)),o=l=s}for(var c=[],u=0;u<o;u++)c.push(m(g(e,t[u],n[u]),6));return c}};function ue(e,t,n,i,a,r,o,l){return t=function(e,t,n){for(var i,a,r,o=e.length-1,l={},s=0;s<=o;s++)(i=e[s]).e&&(i.e=t(i.e)),i.v&&"g"===(a=i.v).t&&a.r&&(r=n.getElementById(a.r))&&(l[a.r]=r.querySelectorAll("stop"));return l}(e,i,l),function(i){var a,r=n(i,e,me);return r?"c"===r.t?I(r.v):"g"===r.t?(t[r.r]&&function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].setAttribute("stop-color",I(t[n]))}(t[r.r],r.v),(a=r.r)?"url(#"+a+")":"none"):"none":"none"}}function me(e,t,n){if(0===e)return t;if(1===e)return n;if(t&&n){var i=t.t;if(i===n.t)switch(t.t){case"c":return{t:i,v:b(e,t.v,n.v)};case"g":if(t.r===n.r)return{t:i,v:w(e,t.v,n.v),r:t.r}}}return h(e,t,n)}var de={blur:y,brightness:g,contrast:g,"drop-shadow":function(e,t,n){return 0===e?t:1===e?n:{blur:y(e,t.blur,n.blur),offset:f(e,t.offset,n.offset),color:b(e,t.color,n.color)}},grayscale:g,"hue-rotate":p,invert:g,opacity:g,saturate:g,sepia:g};function he(e,t,n){if(0===e)return t;if(1===e)return n;var i=t.length;if(i!==n.length)return h(e,t,n);for(var a,r=[],o=0;o<i;o++){if(t[o].type!==n[o].type)return t;if(!(a=de[t[o].type]))return h(e,t,n);r.push({type:t.type,value:a(e,t[o].value,n[o].value)})}return r}var pe={blur:function(e){return e?function(t){e.setAttribute("stdDeviation",M(t))}:null},brightness:function(e,t,n){return(e=fe(n,t))?function(t){t=k(t),e.map((function(e){return e.setAttribute("slope",t)}))}:null},contrast:function(e,t,n){return(e=fe(n,t))?function(t){var n=k((1-t)/2);t=k(t),e.map((function(e){e.setAttribute("slope",t),e.setAttribute("intercept",n)}))}:null},"drop-shadow":function(e,t,n){var i=n.getElementById(t+"-blur");if(!i)return null;var a=n.getElementById(t+"-offset");if(!a)return null;var r=n.getElementById(t+"-flood");return r?function(e){i.setAttribute("stdDeviation",M(e.blur)),a.setAttribute("dx",k(e.offset.x)),a.setAttribute("dy",k(e.offset.y)),r.setAttribute("flood-color",I(e.color))}:null},grayscale:function(e){return e?function(t){e.setAttribute("values",C(function(e){return[.2126+.7874*(e=1-e),.7152-.7152*e,.0722-.0722*e,0,0,.2126-.2126*e,.7152+.2848*e,.0722-.0722*e,0,0,.2126-.2126*e,.7152-.7152*e,.0722+.9278*e,0,0,0,0,0,1,0]}(t)))}:null},"hue-rotate":function(e){return e?function(t){return e.setAttribute("values",k(t))}:null},invert:function(e,t,n){return(e=fe(n,t))?function(t){t=k(t)+" "+k(1-t),e.map((function(e){return e.setAttribute("tableValues",t)}))}:null},opacity:function(e,t,n){return(e=n.getElementById(t+"-A"))?function(t){return e.setAttribute("tableValues","0 "+k(t))}:null},saturate:function(e){return e?function(t){return e.setAttribute("values",k(t))}:null},sepia:function(e){return e?function(t){return e.setAttribute("values",C(function(e){return[.393+.607*(e=1-e),.769-.769*e,.189-.189*e,0,0,.349-.349*e,.686+.314*e,.168-.168*e,0,0,.272-.272*e,.534-.534*e,.131+.869*e,0,0,0,0,0,1,0]}(t)))}:null}},ge=["R","G","B"];function fe(e,t){var n=ge.map((function(n){return e.getElementById(t+"-"+n)||null}));return-1!==n.indexOf(null)?null:n}var ye={fill:ue,"fill-opacity":se,stroke:ue,"stroke-opacity":se,strokeWidth:le,strokeDashoffset:{f:k,i:p},strokeDasharray:ce,opacity:se,transform:function(t,n,i,a){if(!(t=function(t,n){if(!t||"object"!==e(t))return null;var i=!1;for(var a in t)t.hasOwnProperty(a)&&(t[a]&&t[a].length?(t[a].forEach((function(e){e.e&&(e.e=n(e.e))})),i=!0):delete t[a]);return i?t:null}(t,a)))return null;var r=function(e,a,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t[e]?i(a,t[e],r):n&&n[e]?n[e]:o};return n&&n.a&&t.o?function(e){var n=i(e,t.o,te);return ae.recomposeSelf(n,r("r",e,p,0)+n.a,r("k",e,f),r("s",e,f),r("t",e,f)).toString()}:function(e){return ae.recomposeSelf(r("o",e,ee,null),r("r",e,p,0),r("k",e,f),r("s",e,f),r("t",e,f)).toString()}},"#filter":function(e,t,n,i,a,r,o,l){if(!t.items||!e||!e.length)return null;var s=function(e,t){var n=(e=e.map((function(e){return e&&pe[e[0]]?(t.getElementById(e[1]),pe[e[0]](t.getElementById(e[1]),e[1],t)):null}))).length;return function(t){for(var i=0;i<n;i++)e[i]&&e[i](t[i].value)}}(t.items,l);return s?(e=function(e,t){return e.map((function(e){return e.e=t(e.e),e}))}(e,i),function(t){s(n(t,e,he))}):null},"#line":oe,points:{f:C,i:_},d:re,r:le,"#size":A,"#radius":S,_:function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)this[e[n]]=t;else this[e]=t}},ve=function(){function e(n){t(this,e),this.list=n,this.length=n.length}return i(e,[{key:"setAttribute",value:function(e,t){for(var n=this.list,i=0;i<this.length;i++)n[i].setAttribute(e,t)}},{key:"removeAttribute",value:function(e){for(var t=this.list,n=0;n<this.length;n++)t[n].removeAttribute(e)}},{key:"style",value:function(e,t){for(var n=this.list,i=0;i<this.length;i++)n[i].style[e]=t}}]),e}(),be=/-./g,we=function(e,t){return t.toUpperCase()};function _e(e){return"function"==typeof e?e:h}function Ee(e){return e?"function"==typeof e?e:Array.isArray(e)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(!Array.isArray(e))return t;switch(e.length){case 1:return u(e[0])||t;case 2:return u(e[0],e[1])||t;case 4:return l(e[0],e[1],e[2],e[3])||t}return t}(e,null):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;switch(e){case"linear":return r;case"steps":return u(t.steps||1,t.jump||0)||n;case"bezier":case"cubic-bezier":return l(t.x1||0,t.y1||0,t.x2||0,t.y2||0)||n}return n}(e.type,e.value,null):null}function xe(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.length-1;if(e<=t[0].t)return i?[0,0,t[0].v]:t[0].v;if(e>=t[a].t)return i?[a,1,t[a].v]:t[a].v;var r,o=t[0],l=null;for(r=1;r<=a;r++){if(!(e>t[r].t)){l=t[r];break}o=t[r]}return null==l?i?[a,1,t[a].v]:t[a].v:o.t===l.t?i?[r,1,l.v]:l.v:(e=(e-o.t)/(l.t-o.t),o.e&&(e=o.e(e)),i?[r,e,n(e,o.v,l.v)]:n(e,o.v,l.v))}function je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e&&e.length?"function"!=typeof t?null:("function"!=typeof n&&(n=null),function(i){var a=xe(i,e,t);return null!=a&&n&&(a=n(a)),a}):null}function ke(e,t){return e.t-t.t}function Ce(t,n,i,a){if(!a||"object"!==e(a))return null;var r=null,o=null;return Array.isArray(a)?o=function(e){if(!e||!e.length)return null;for(var t=0;t<e.length;t++)e[t].e&&(e[t].e=Ee(e[t].e));return e.sort(ke)}(a):(o=a.keys,r=a.data||null),o?function(t,n,i,a,r){var o,l="@"===i[0],s="#"===i[0],c=ye[i],u=h;switch(l?(o=i.substr(1),i=o.replace(be,we)):s&&(i=i.substr(1)),e(c)){case"function":if(u=c(a,r,xe,Ee,i,l,n,t),s)return u;break;case"string":u=je(a,_e(c));break;case"object":if((u=je(a,_e(c.i),c.f))&&"function"==typeof c.u)return c.u(n,u,i,l,t)}return u?function(e,t,n){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3])return e instanceof ve?function(i){return e.style(t,n(i))}:function(i){return e.style[t]=n(i)};if(Array.isArray(t)){var i=t.length;return function(a){var r=n(a);if(null==r)for(var o=0;o<i;o++)e[o].removeAttribute(t);else for(var l=0;l<i;l++)e[l].setAttribute(t,r)}}return function(i){var a=n(i);null==a?e.removeAttribute(t):e.setAttribute(t,a)}}(n,i,u,l):null}(t,n,i,o,r):null}function Me(e,t,n){if(!n)return null;var i=[];for(var a in n)if(n.hasOwnProperty(a)){var r=Ce(e,t,a,n[a]);r&&i.push(r)}return i.length?i:null}var Ie=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,e),this._id=0,this._running=!1,this._animations=n,this.direction=i.direction||1,this.speed=i.speed||1,this.fps=i.fps||100,this.offset=i.offset||0}return i(e,[{key:"_start",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=-1/0,i=null,a={},r=function r(o){e._running=!0,null==i&&(i=o);var l=Math.round((o-i+t)*e.speed),s=e.fps?1e3/e.fps:0;if(l>n+s){e.offset=l,n=l;for(var c=e._animations,u=c.length,m=0,d=0;d<u;d++)a[d]?m++:(a[d]=c[d](l,e.direction),a[d]&&m++);if(m===u)return void e._stop()}e._id=window.requestAnimationFrame(r)};this._id=window.requestAnimationFrame(r)}},{key:"_stop",value:function(){this._id&&window.cancelAnimationFrame(this._id),this._running=!1}},{key:"play",value:function(){this._running||this._start(this.offset)}},{key:"stop",value:function(){this._stop(),this.offset=0;var e=this.direction,t=this._animations;requestAnimationFrame((function(){for(var n=0;n<t.length;n++)t[n](0,e)}))}},{key:"restart",value:function(){this._stop(),this.offset=0,this._start()}},{key:"pause",value:function(){this._stop()}},{key:"reverse",value:function(){this.direction=-this.direction}}],[{key:"build",value:function(t){if(!(t=function(e){if(!e||!e.root||!Array.isArray(e.animations))return null;var t=window.document.getElementById(e.root);if(!t)return null;var n=e.animations.map((function(e){return function(e,t){if(!t.duration||t.duration<0)return null;var n=function(e,t){if(!t)return null;var n=[];if(Array.isArray(t))for(var i=t.length,a=0;a<i;a++){var r=t[a];if(2===r.length){var o=null;if("string"==typeof r[0])o=e.getElementById(r[0]);else if(Array.isArray(r[0])){o=[];for(var l=0;l<r[0].length;l++)if("string"==typeof r[0][l]){var s=e.getElementById(r[0][l]);s&&o.push(s)}o=o.length?1===o.length?o[0]:new ve(o):null}if(o){var c=Me(e,o,r[1]);c&&(n=n.concat(c))}}}else for(var u in t)if(t.hasOwnProperty(u)){var m=e.getElementById(u);if(m){var d=Me(e,m,t[u]);d&&(n=n.concat(d))}}return n.length?n:null}(e,t.elements);return n?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=e.length,l=i>0?t:0;a&&n%2==0&&(l=t-l);var s=null;return function(c,u){var m=c%t,d=1+(c-m)/t;u*=i,a&&d%2==0&&(u=-u);var h=!1;if(d>n)m=l,h=!0,-1===r&&(m=i>0?0:t);else if(u<0&&(m=t-m),m===s)return!1;s=m;for(var p=0;p<o;p++)e[p](m);return h}}(n,t.duration,t.iterations||1/0,t.direction||1,!!t.alternate,t.fill||1):null}(t,e)})).filter((function(e){return!!e}));return n.length?{element:t,animations:n,options:e.options||void 0}:null}(t)))return null;var n=t.element,i=t.options||{},a=new e(t.animations,t.options);return function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("click"!==n){if("hover"===n)return t.addEventListener("mouseenter",(function(){return e.play()})),void t.addEventListener("mouseleave","freeze"===i?function(){return e.pause()}:function(){return e.stop()});e.play()}else{var a=function n(){t.removeEventListener("click",n),e.play()};t.addEventListener("click",a)}}(a,n,i.start,i.hover),a}}]),e}();return function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var n=Date.now(),i=Math.max(0,16-(n-e)),a=window.setTimeout((function(){t(n+i)}),i);return e=n+i,a},window.cancelAnimationFrame=window.clearTimeout)}(),Ie},"object"==typeof exports?e.exports=i():"function"==typeof define&&n.amdO?define(i):(t=t||self).__SVGATOR_PLAYER__=i(),__SVGATOR_PLAYER__.build({root:"e29gnwghxaec1",animations:[{duration:3e3,direction:1,iterations:0,fill:1,alternate:!1,elements:{e29gnwghxaec4:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:70,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:160,y:60.000000000000085,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:250.00000000000006,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:250.0000000000001,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:160.00000000000009,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:70.00000000000013,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:70.00000000000011,y:110.00000000000003,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec5:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:70,y:209.99999999999997,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:70,y:109.99999999999996,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:160,y:59.999999999999986,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:250.00000000000006,y:110,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:250,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:160.00000000000003,y:260,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:70.00000000000006,y:210,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec6:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:160,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:70.00000000000003,y:210.00000000000003,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:70.0000000033166,y:110.00000000017586,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:159.99999999559876,y:59.99999999808161,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:250.00000000133716,y:109.99999999826927,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:250.00000000074502,y:209.99999999748923,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:160.00000000328416,y:259.99999999938586,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec7:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:250.00000000000006,y:209.99999999827637,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:160.00000000000003,y:259.9999999982764,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:70.00000000000003,y:209.9999999982764,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:70.00000000000003,y:109.99999999827641,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:159.99999999999997,y:59.99999999827642,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:250,y:109.99999999827642,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:250.00000000000003,y:209.99999999827642,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec8:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:250.00000000000006,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:250.00000000000009,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:160.00000000000006,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:70.00000000000006,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:70.00000000000003,y:110.00000000000007,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:160.00000000000006,y:60.000000000000064,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:250,y:110.00000000000006,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec9:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:160,y:60,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:249.99999999999997,y:110,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:249.99999999999994,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:159.99999999999991,y:260,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:69.99999999999991,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:69.99999999999994,y:110.00000000000001,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:159.99999999999994,y:60.00000000000004,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}}}}],options:{start:"load",hover:"restart"}})}),[]),(0,i.createElement)("svg",{id:"e29gnwghxaec1",className:"imajinn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 300",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision"},(0,i.createElement)("defs",null,(0,i.createElement)("filter",{id:"e29gnwghxaec4-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec4-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec5-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec5-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec6-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec6-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec7-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec7-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec8-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec8-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec9-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec9-filter-blur-0",stdDeviation:"0,0",result:"result"}))),(0,i.createElement)("circle",{id:"e29gnwghxaec2",r:"50",transform:"matrix(-1 0 -0 -1 149.99999999999997 50.00000000379265)",fill:"none",stroke:"rgb(255,122,122)",strokeWidth:"6",strokeDashoffset:"314.160000",strokeDasharray:"314.160000"}),(0,i.createElement)("circle",{id:"e29gnwghxaec3",r:"50",transform:"matrix(-1 0 -0 -1 49.99999999999997 150.00000000379259)",fill:"none",stroke:"rgb(255,122,122)",strokeWidth:"6",strokeDashoffset:"314.160000",strokeDasharray:"314.160000"}),(0,i.createElement)("path",{id:"e29gnwghxaec4",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 52.00000000000004 110.00000000344897)",filter:"url(#e29gnwghxaec4-filter)",fill:"rgb(239,237,39)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec5",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 52.00000000000004 210.00000000344886)",filter:"url(#e29gnwghxaec5-filter)",fill:"rgb(236,0,140)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec6",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 142.00000000000003 260.00000000344897)",filter:"url(#e29gnwghxaec6-filter)",fill:"rgb(238,124,30)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec7",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 232.00000000000009 210.00000000172525)",filter:"url(#e29gnwghxaec7-filter)",fill:"rgb(0,161,103)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec8",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 232.00000000000009 110.00000000344897)",filter:"url(#e29gnwghxaec8-filter)",fill:"rgb(192,53,226)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec9",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 142.00000000000003 60.00000000344890)",filter:"url(#e29gnwghxaec9-filter)",fill:"rgb(38,169,224)",stroke:"none",strokeWidth:"6"}))}n(609),e=n.hmd(e)},609:function(e){e.exports=window.wp.components},307:function(e){e.exports=window.wp.element}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var r=t[i]={id:i,loaded:!1,exports:{}};return e[i](r,r.exports,n),r.loaded=!0,r.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");i.length&&(e=i[i.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),function(){var e=window.wp.blocks;function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}var i=n(307),a=window.wp.i18n,r=window.wp.blockEditor,o=n(609),l=window.wp.primitives,s=(0,i.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(l.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),c=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),u=(0,i.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(l.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"})),m=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),d=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),h=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),p=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),g=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),f=(0,i.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(l.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),y=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})),v=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"infinite-uploads/imajinn-ai","version":"0.1.0","title":"Imajinn AI","category":"media","icon":"art","description":"Generate the perfect images from a text prompt in seconds with cutting-edge AI. Creates stunning images for any topic with just your imagination.","keywords":["img","image","photo","picture","ai","art","infinite"],"supports":{"html":false,"multiple":false,"customClassName":false,"reusable":false,"lock":false},"example":{"attributes":{"mode":"preview"}},"textdomain":"imajinn-ai","editorScript":"file:./block.js","editorStyle":"file:./block.css"}'),b=n(684),w=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),_=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));function E(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.Button,{className:"prompt-tips",onClick:()=>r(!0),icon:w,label:(0,a.__)("Prompt Tips","imajinn-ai")}),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"800px"},icon:(0,i.createElement)(o.Icon,{icon:w}),title:(0,a.__)("Basics of Prompt Engineering","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)('"Prompt Engineering" is an important skill to create  better generations with this text to image AI. After reading this document and applying these simple steps, you’ll be able to generate better images with the same amount of effort.',"imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Note: Your prompt should be in English as the AI model was only trained with English labels, and will function poorly with other languages. If you speak another language you can use a online translation tool, which should provide excellent results as it does not have to be perfect.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("1. Raw prompt","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Raw prompt is the simplest way of describing what you want to generate, for instance;","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Panda"),(0,i.createElement)("li",null,"A warrior with a sword"),(0,i.createElement)("li",null,"Skeleton")),(0,i.createElement)("p",null,(0,a.__)("This is the basic building block of any prompt. Most new people start by only using raw prompts, this is usually a mistake as the images you generate like this tend to get random and chaotic. It's best to include as much detail as possible in your prompt describing exactly what you want to see in the scene.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("2. Style","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Style is a crucial part of the prompt. The AI, when missing a specified style, usually chooses the one it has seen the most in related images, for example, if you generated landscape, it would probably generate realistic or oil painting looking images. Having a well chosen style + raw prompt is sometimes enough, as the style influences the image the most right after the raw prompt.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The most commonly used styles include:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Realistic"),(0,i.createElement)("li",null,"Oil painting"),(0,i.createElement)("li",null,"Pencil drawing"),(0,i.createElement)("li",null,"Concept art")),(0,i.createElement)("p",null,(0,a.__)("In the case of a realistic image, there are various ways of making it the style, most resulting in similar images. Here are some commonly used techniques of making the image realistic:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"a photo of + raw prompt"),(0,i.createElement)("li",null,"a photograph of + raw prompt"),(0,i.createElement)("li",null,"raw prompt, hyperrealistic"),(0,i.createElement)("li",null,"raw prompt, realistic")),(0,i.createElement)("p",null,(0,a.__)("You can of course combine these to get more and more realistic images.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To get oil painting you can just simply add “an oil painting of” to your prompt. This sometimes results in the image showing an oil painting in a frame, to fix this you can just re-run the prompt or use raw prompt + “oil painting”","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To make a pencil drawing just simply add “a pencil drawing of” to your raw prompt or make your prompt raw prompt + “pencil drawing”.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The same applies to landscape art.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("3. Artist","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To make your style more specific, or the image more coherent, you can use artists’ names in your prompt. For instance, if you want a very abstract image, you can add “made by Pablo Picasso” or just simply, “Picasso”.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Below are lists of artists in different styles that you can use, but we encourage you to search for different artists as it is a cool way of discovering new art.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Portrait:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"John Singer Sargent"),(0,i.createElement)("li",null,"Edgar Degas"),(0,i.createElement)("li",null,"Paul Cézanne"),(0,i.createElement)("li",null,"Jan van Eyck")),(0,i.createElement)("p",null,(0,a.__)("Oil painting:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Leonardo DaVinci"),(0,i.createElement)("li",null,"Vincent Van Gogh"),(0,i.createElement)("li",null,"Johannes Vermeer"),(0,i.createElement)("li",null,"Rembrandt")),(0,i.createElement)("p",null,(0,a.__)("Pencil/Pen drawing:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Albrecht Dürer"),(0,i.createElement)("li",null,"Leonardo da Vinci"),(0,i.createElement)("li",null,"Michelangelo"),(0,i.createElement)("li",null,"Jean-Auguste-Dominique Ingres")),(0,i.createElement)("p",null,(0,a.__)("Landscape art:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Thomas Moran"),(0,i.createElement)("li",null,"Claude Monet"),(0,i.createElement)("li",null,"Alfred Bierstadt"),(0,i.createElement)("li",null,"Frederic Edwin Church")),(0,i.createElement)("p",null,(0,a.__)("Mixing the artists is highly encouraged, as it can lead to interesting-looking art.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("4. Finishing touches","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("This is the part that some people take to extremes, leading to longer prompts than this article. Finishing touches are the final things that you add to your prompt to make it look like you want. For instance, if you want to make your image more artistic, add “trending on artstation”. If you want to add more realistic lighting add “Unreal Engine.” You can add anything you want, but here are some examples:","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Highly detailed, surrealism, trending on art station, triadic color scheme, smooth, sharp focus, matte, elegant, the most beautiful image ever seen, illustration, digital paint, dark, gloomy, octane render, 8k, 4k, washed colors, sharp, dramatic lighting, beautiful, post processing, picture of the day, ambient lighting, epic composition, bokeh, etc.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("5. Conclusion","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Prompt engineering allows you to have better control of what the image will look like. It (if done right) improves the image quality by a lot in every aspect.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Some fun example prompts to get you started:","imajinn-ai")),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,"A cat walks through a cyberpunk street, rain, poster, artstation, neon, futuristic, stunning, highly detailed, digital painting"),(0,i.createElement)("li",null,"a portrait of a family of dwarfs in middle earth, by Albert Bierstadt, 8K"),(0,i.createElement)("li",null,"a ",(0,i.createElement)("em",null,"[beach|jungle|scene of your choice]"),", highly detailed oil painting, unreal 5 render, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, digital art, octane render, beautiful composition, award-winning photograph, masterpiece"),(0,i.createElement)("li",null,"a close up view of a man looking like Elon Musk. rockets launching in the background, highly detailed oil painting, render, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, digital art, octane render, beautiful composition, trending on artstation, award-winning photograph, masterpiece,8k, high quality sharp anime classic anime from 2010 in style of Hayao Miyazaki"),(0,i.createElement)("li",null,"a headless astronaut in space suit, holding space helmet in hands, extremely detailed oil painting, unreal 5 render, rhads, Bruce Pennington, tim hildebrandt, digital art, octane render, beautiful composition, trending on artstation, award-winning photograph, masterpiece")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}function x(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.ToolbarButton,{onClick:()=>r(!0),icon:_,label:(0,a.__)("Help","imajinn-ai")}),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"900px"},icon:(0,i.createElement)(o.Icon,{icon:_}),title:(0,a.__)("Usage Instructions","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)("Imajinn AI is a powerful tool that uses the latest technology in AI to generate images from text. It is a great tool for writers, artists, and anyone who needs to visualize their ideas.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The Imajinn AI interface is a block that you can add to your post or page. You can add it by clicking on the plus button in the top left corner of the editor and selecting Imajinn AI. You can also add it by clicking on the Imajinn AI icon in the block inserter. It does not output any content on your site on its own, but allows you to generate and insert images into the same location in the block editor. When finished you can just close the block.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Connecting","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Infinite Uploads/Imajinn AI email and password.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Prompts","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To generate images, you need to write a prompt. A prompt is a text that describes what you want the image to look like. The prompt should be in English as the AI model was only trained with English labels, and will function poorly with other languages. The prompt can be as short as a a few words, or as long as a paragraph. The longer the prompt, the more detailed the image will be. Please see our prompt engineering guide for more information on how to write a good prompt.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Prefilled Styles","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To give you inspiration and make it easier to generate images in specific styles, we have added some dropdowns with prefilled styles that you can optionally select from. When optionally choosing options here it will append specific keywords to your prompt to achieve that style when sent to our servers.","imajinn-ai")),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Image Style","imajinn-ai")),"-",(0,a.__)("Choose from many common photographic or artistic styles and mediums.","imajinn-ai")),(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Artist Style","imajinn-ai")),"-",(0,a.__)("Choose to generate your images based on the styles of some famous artists.","imajinn-ai")),(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Modifier","imajinn-ai")),"-",(0,a.__)("Some fun and common styles to give the image output that special uniqueness.","imajinn-ai"))),(0,i.createElement)("h3",null,(0,a.__)("Image Ratio","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("You can control the output ratio of the generated images. Square images are the default, while rectangular images have more pixels and take much longer to process.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The AI model was trained on square images, so depending on the prompt rectangular images may produce strange results such as duplication of the main subject. For example a rectangular image of a person may produce two of the same person, or multiple mouths on the same face. So it may require more prompt editing and generation attempts to get the desired result. Rectangular images are best used for landscapes, scenes, and other objects that do not have a singular main subject.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Saving Images","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Imajinn AI allows you to save images to your media library, and optionally insert them into your post/page. You can save images by clicking on the save button in the bottom left corner of each image generation. You can insert images into the editor in the same location as the Imajinn block by clicking on the insert button in the bottom right corner. Inserting an image also saves it to your media library, so you don't need to choose both.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("When you save or insert an image, it can take a few seconds because we send it to our servers to be upscaled using our advanced AI models so that you get a high resolution optimized image in your media library with no watermarks.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Image Actions","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("For each image result for a generation, you can perform some actions on the image. You can share the image on social media, generate a set of variations, or perform a face repair.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("If you've found an image you like, you can click the Generate Variations button to generate a set of images with similar styles and layout to give you more options to choose from. This will take into account any modifications you've made to the prompt, while still roughly following the original image. Creating variations uses one credit just like a normal generation.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("If you've generated an image of a person and the face looks slightly deformed or unrealistic, you can click the Face Repair button to try and repair any issues with the face. This processes the image on our servers with AI-based facial restoration to restore facial details and enhance colors with a good balance of realness and fidelity. It can't fix every problem with a face, but it can help with some common issues. This tool is most effective for photographic or realistic art; if you try to use it on more abstract artistic faces results may be strange. Face repairs are not stored in your prompt history so that you can easily undo, and do not use any credits.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Credits","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("When you first signup for Imajinn AI, you get a chunk of free credits. You can use these credits to generate images and get a feel for how the plugin functions and learn how to write effective prompts. If you run out, you can purchase more credits from the Imajinn AI website via our plans.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Each prompt generation uses one credit, and creates four images that you can choose to save and/or insert into your content. There is no limit to the number of images you can save.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Filters and Restrictions","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To ensure that the images generated are appropriate for all audiences, we have a set of filters and restrictions that are applied to prompts and the image outputs. We block the use of specific words and phrases in prompts, and we scan all generations with an AI moderation filter to block images that appear to contain nudity, or other inappropriate content.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Depending on your prompt construction, it can be a fairly common occurrence for it to detect a potentially inappropriate image. If this happens, you will see a warning message. You can either change your prompt, or try generating again. We currently don't charge credits for images that are blocked by the filter, but may need to change this policy in the future. We monitor prompt violations and if we find that you are purposely using inappropriate prompts and attempting to bypass our restrictions, we may disable your account.","imajinn-ai")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}function j(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.Button,{onClick:()=>r(!0)},e.buttonLabel||(0,a.__)("License / Restrictions","imajinn-ai")),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"800px"},icon:(0,i.createElement)(o.Icon,{icon:(0,i.createElement)(o.Icon,{icon:w})}),title:(0,a.__)("License / Usage Restrictions","imajinn-ai")}),(0,i.createElement)("p",null,"CreativeML Open RAIL-M dated August 22, 2022"),(0,i.createElement)("p",null,"Section I: PREAMBLE"),(0,i.createElement)("p",null,"Multimodal generative models are being widely adopted and used, and have the potential to transform the way artists, among other individuals, conceive and benefit from AI or ML technologies as a tool for content creation."),(0,i.createElement)("p",null,"Notwithstanding the current and potential benefits that these artifacts can bring to society at large, there are also concerns about potential misuses of them, either due to their technical limitations or ethical considerations."),(0,i.createElement)("p",null,"In short, this license strives for both the open and responsible downstream use of the accompanying model. When it comes to the open character, we took inspiration from open source permissive licenses regarding the grant of IP rights. Referring to the downstream responsible use, we added use-based restrictions not permitting the use of the Model in very specific scenarios, in order for the licensor to be able to enforce the license in case potential misuses of the Model may occur. At the same time, we strive to promote open and responsible research on generative models for art and content generation."),(0,i.createElement)("p",null,"Even though downstream derivative versions of the model could be released under different licensing terms, the latter will always have to include - at minimum - the same use-based restrictions as the ones in the original license (this license). We believe in the intersection between open and responsible AI development; thus, this License aims to strike a balance between both in order to enable responsible open-science in the field of AI."),(0,i.createElement)("p",null,"This License governs the use of the model (and its derivatives) and is informed by the model card associated with the model."),(0,i.createElement)("p",null,"NOW THEREFORE, You and Licensor agree as follows:"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,(0,i.createElement)("p",null,"Definitions")),(0,i.createElement)("li",null,(0,i.createElement)("p",null,'"License" means the terms and conditions for use, reproduction, and Distribution as defined in this document.')),(0,i.createElement)("li",null,'"Data" means a collection of information and/or content extracted from the dataset used with the Model, including to train, pretrain, or otherwise evaluate the Model. The Data is not licensed under this License.'),(0,i.createElement)("li",null,'"Output" means the results of operating a Model as embodied in informational content resulting therefrom.'),(0,i.createElement)("li",null,'"Model" means any accompanying machine-learning based assemblies (including checkpoints), consisting of learnt weights, parameters (including optimizer states), corresponding to the model architecture as embodied in the Complementary Material, that have been trained or tuned, in whole or in part on the Data, using the Complementary Material.'),(0,i.createElement)("li",null,'"Derivatives of the Model" means all modifications to the Model, works based on the Model, or any other model which is created or initialized by transfer of patterns of the weights, parameters, activations or output of the Model, to the other model, in order to cause the other model to perform similarly to the Model, including - but not limited to - distillation methods entailing the use of intermediate data representations or methods based on the generation of synthetic data by the Model for training the other model.'),(0,i.createElement)("li",null,'"Complementary Material" means the accompanying source code and scripts used to define, run, load, benchmark or evaluate the Model, and used to prepare data for training or evaluation, if any. This includes any accompanying documentation, tutorials, examples, etc, if any.'),(0,i.createElement)("li",null,'"Distribution" means any transmission, reproduction, publication or other sharing of the Model or Derivatives of the Model to a third party, including providing the Model as a hosted service made available by electronic or other remote means - e.g. API-based or web access.'),(0,i.createElement)("li",null,'"Licensor" means the copyright owner or entity authorized by the copyright owner that is granting the License, including the persons or entities that may have rights in the Model and/or distributing the Model.'),(0,i.createElement)("li",null,'"You" (or "Your") means an individual or Legal Entity exercising permissions granted by this License and/or making use of the Model for whichever purpose and in any field of use, including usage of the Model in an end-use application - e.g. chatbot, translator, image generator.'),(0,i.createElement)("li",null,'"Third Parties" means individuals or legal entities that are not under common control with Licensor or You.'),(0,i.createElement)("li",null,'"Contribution" means any work of authorship, including the original version of the Model and any modifications or additions to that Model or Derivatives of the Model thereof, that is intentionally submitted to Licensor for inclusion in the Model by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Model, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."'),(0,i.createElement)("li",null,'"Contributor" means Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Model.')),(0,i.createElement)("p",null,"Section II: INTELLECTUAL PROPERTY RIGHTS"),(0,i.createElement)("p",null,"Both copyright and patent grants apply to the Model, Derivatives of the Model and Complementary Material. The Model and Derivatives of the Model are subject to additional terms as described in Section III."),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare, publicly display, publicly perform, sublicense, and distribute the Complementary Material, the Model, and Derivatives of the Model."),(0,i.createElement)("li",null,"Grant of Patent License. Subject to the terms and conditions of this License and where and as applicable, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this paragraph) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Model and the Complementary Material, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Model to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Model and/or Complementary Material or a Contribution incorporated within the Model and/or Complementary Material constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for the Model and/or Work shall terminate as of the date such litigation is asserted or filed.")),(0,i.createElement)("p",null,"Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Distribution and Redistribution. You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications, provided that You meet the following conditions: Use-based restrictions as referenced in paragraph 5 MUST be included as an enforceable provision by You in any type of legal agreement (e.g. a license) governing the use and/or distribution of the Model or Derivatives of the Model, and You shall give notice to subsequent users You Distribute to, that the Model or Derivatives of the Model are subject to paragraph 5. This provision does not apply to the use of Complementary Material. You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License; You must cause any modified files to carry prominent notices stating that You changed the files; You must retain all copyright, patent, trademark, and attribution notices excluding those notices that do not pertain to any part of the Model, Derivatives of the Model. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions - respecting paragraph 4.a. - for use, reproduction, or Distribution of Your modifications, or for any such Derivatives of the Model as a whole, provided Your use, reproduction, and Distribution of the Model otherwise complies with the conditions stated in this License."),(0,i.createElement)("li",null,"Use-based restrictions. The restrictions set forth in Attachment A are considered Use-based restrictions. Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses. You may use the Model subject to this License, including only for lawful purposes and in accordance with the License. Use may include creating any content with, finetuning, updating, running, training, evaluating and/or reparametrizing the Model. You shall require all of Your users who use the Model or a Derivative of the Model to comply with the terms of this paragraph (paragraph 5)."),(0,i.createElement)("li",null,"The Output You Generate. Except as set forth herein, Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses. No use of the output can contravene any provision as stated in the License.")),(0,i.createElement)("p",null,"Section IV: OTHER PROVISIONS"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Updates and Runtime Restrictions. To the maximum extent permitted by law, Licensor reserves the right to restrict (remotely or otherwise) usage of the Model in violation of this License, update the Model through electronic means, or modify the Output of the Model based on updates. You shall undertake reasonable efforts to use the latest version of the Model."),(0,i.createElement)("li",null,"Trademarks and related. Nothing in this License permits You to make use of Licensors’ trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between the parties; and any rights not expressly granted herein are reserved by the Licensors."),(0,i.createElement)("li",null,'Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Model and the Complementary Material (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Model, Derivatives of the Model, and the Complementary Material and assume any risks associated with Your exercise of permissions under this License.'),(0,i.createElement)("li",null,"Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Model and the Complementary Material (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages."),(0,i.createElement)("li",null,"Accepting Warranty or Additional Liability. While redistributing the Model, Derivatives of the Model and the Complementary Material thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability."),(0,i.createElement)("li",null,"If any provision of this License is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.")),(0,i.createElement)("p",null,"END OF TERMS AND CONDITIONS"),(0,i.createElement)("p",null,"Attachment A"),(0,i.createElement)("p",null,"Use Restrictions"),(0,i.createElement)("p",null,"You agree not to use the Model or Derivatives of the Model:"),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,"In any way that violates any applicable national, federal, state, local or international law or regulation;"),(0,i.createElement)("li",null,"For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;"),(0,i.createElement)("li",null,"To generate or disseminate verifiably false information and/or content with the purpose of harming others;"),(0,i.createElement)("li",null,"To generate or disseminate personal identifiable information that can be used to harm an individual;"),(0,i.createElement)("li",null,"To defame, disparage or otherwise harass others;"),(0,i.createElement)("li",null,"For fully automated decision making that adversely impacts an individual’s legal rights or otherwise creates or modifies a binding, enforceable obligation;"),(0,i.createElement)("li",null,"For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;"),(0,i.createElement)("li",null,"To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;"),(0,i.createElement)("li",null,"For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories;"),(0,i.createElement)("li",null,"To provide medical advice and medical results interpretation;"),(0,i.createElement)("li",null,"To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}var k=n.p+"images/imajinn-demo.6ce7fccc.jpg";function C(e){const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(null),[s,c]=(0,i.useState)(null),[u,m]=(0,i.useState)(IMAJINN.email),[d,h]=(0,i.useState)(""),[p,g]=(0,i.useState)(!1),[f,y]=(0,i.useState)(!1);if(e.isConnected)return null;const v=e=>e.target.select();return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("img",{src:k,alt:(0,a.__)("Example images generated by Imajinn AI","imajinn-ai"),style:{width:"100%"}}),(0,i.createElement)("p",null,(0,a.__)("We hope you are excited to turn your imagination into creative media for your WordPress site. To get started please create a free account or login with your existing Infinite Uploads/Imajinn credentials and we'll connect your site to our cloud.","imajinn-ai")),(0,i.createElement)((()=>r?(0,i.createElement)(o.Notice,{status:"warning"},(0,i.createElement)(o.__experimentalText,null,r,"incorrect_password"===s&&(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/wp-login.php?action=lostpassword",target:"_blank"},(0,a.__)("Reset Password","imajinn-ai")))):null),null),(0,i.createElement)(o.__experimentalHeading,{as:"label"},(0,a.__)("Register / Login","imajinn-ai")),(0,i.createElement)(o.Flex,{align:"bottom",wrap:"true",className:"connect-wrapper"},(0,i.createElement)(o.FlexItem,null,(0,i.createElement)(o.TextControl,{label:(0,a.__)("Email","imajinn-ai"),type:"email",value:u,onFocus:v,onChange:e=>m(e),help:(0,a.__)("You'll need a valid email to enable your credits.","imajinn-ai")}),(0,i.createElement)(o.TextControl,{label:(0,a.__)("Password","imajinn-ai"),type:"password",autoComplete:"off",value:d,onFocus:v,onChange:e=>h(e)})),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)(o.CheckboxControl,{label:(0,a.__)("I agree to the Terms of Service and Usage Restrictions:","imajinn-ai"),checked:f,value:"1",onChange:e=>y(e)}),(0,i.createElement)("div",{className:"license-links"},(0,i.createElement)(j,{buttonLabel:(0,a.__)("Usage Restrictions","imajinn-ai")}),(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/terms-of-service/",target:"_blank"},(0,a.__)("Terms of Service","imajinn-ai")),(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/privacy/",target:"_blank"},(0,a.__)("Privacy Policy","imajinn-ai"))),(0,i.createElement)(o.CheckboxControl,{label:(0,a.__)("Notify me about usage tips & new features (unsubscribe anytime)","imajinn-ai"),checked:p,value:"1",onChange:e=>g(e)})),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((()=>t?(0,i.createElement)(o.Button,{className:"connect-button",disabled:!0},(0,i.createElement)(o.Spinner,null)):(0,i.createElement)(o.Button,{className:"connect-button",variant:"primary",disabled:t,onClick:()=>{n(!0),l(null),fetch(`${ajaxurl}?action=imajinn-connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u,password:d,signup_tos:f,signup_newsletter:p,nonce:IMAJINN.nonce})}).then((e=>e.json())).then((t=>{console.log(t),t.success?(e.setIsConnected(!0),IMAJINN.connected=!0,e.setCredits(t.data.remaining_credits)):(n(!1),c(t.data[0].code),l(t.data[0].message))})).catch((e=>{n(!1),l(e)}))}},(0,a.__)("Connect","imajinn-ai"))),null))))}var M={styles:[{id:"photography, photorealistic, DSLR, canon50",name:(0,a.__)("Photography","imajinn-ai"),children:[{id:"photography, photo realistic, DSLR, canon50",name:(0,a.__)("Realistic","imajinn-ai")},{id:"Portrait photograph, bokeh, dof, canon50",name:(0,a.__)("Portrait","imajinn-ai")},{id:"polaroid photograph",name:(0,a.__)("Polaroid","imajinn-ai")},{id:"war photography, WWI photograph, WWII photograph",name:(0,a.__)("War","imajinn-ai")},{id:"Wildlife Photography, national geographic photo, zoom",name:(0,a.__)("Wildlife","imajinn-ai")},{id:"Photojournalism, award winning",name:(0,a.__)("Photojournalism","imajinn-ai")},{id:"macro photograph",name:(0,a.__)("Macro","imajinn-ai")},{id:"long exposure, photograph, realistic",name:(0,a.__)("Long Exposure","imajinn-ai")},{id:"fish eye lense, wide-angle",name:(0,a.__)("Fish Eye","imajinn-ai")}]},{id:"painting, digital art, trending on artstation",name:(0,a.__)("Painting","imajinn-ai"),children:[{id:"digital art, trending on artstation, hd",name:(0,a.__)("Digital Art","imajinn-ai")},{id:"oil painting, award winning",name:(0,a.__)("Oil Painting","imajinn-ai")},{id:"watercolor painting",name:(0,a.__)("Watercolor","imajinn-ai")},{id:"acrylic painting, award winning art, trending",name:(0,a.__)("Acrylic","imajinn-ai")},{id:"airbrush art",name:(0,a.__)("Airbrushed","imajinn-ai")},{id:"comic, comic book",name:(0,a.__)("Comic Book","imajinn-ai")},{id:"schematic blueprint",name:(0,a.__)("Blueprint","imajinn-ai")},{id:"made up of ink dots, artistic drawing, trending on artstation",name:(0,a.__)("Ink Dot","imajinn-ai")}]},{id:"artistic drawing, trending on artstation",name:(0,a.__)("Drawing","imajinn-ai"),children:[{id:"illustration, trending on artstation",name:(0,a.__)("Illustration","imajinn-ai")},{id:"cyberpunk, trending on artstation",name:(0,a.__)("Cyberpunk","imajinn-ai")},{id:"pencil sketch, drawing, trending on artstation",name:(0,a.__)("Pencil","imajinn-ai")},{id:"drawn in blue biro pen, artistic drawing, trending on artstation",name:(0,a.__)("Pen","imajinn-ai")},{id:"Ink dripping drawing, trending on artstation",name:(0,a.__)("Ink","imajinn-ai")},{id:"caligraphy",name:(0,a.__)("Caligraphy","imajinn-ai")},{id:"charcoal shaded, artistic drawing, trending on artstation",name:(0,a.__)("Charcoal","imajinn-ai")},{id:"cartoon",name:(0,a.__)("Cartoon","imajinn-ai")},{id:"comic, comic book",name:(0,a.__)("Comic Book","imajinn-ai")},{id:"schematic blueprint",name:(0,a.__)("Blueprint","imajinn-ai")},{id:"technical sketch",name:(0,a.__)("Technical Sketch","imajinn-ai")},{id:"made up of ink dots, artistic drawing, trending on artstation",name:(0,a.__)("Ink Dot","imajinn-ai")},{id:"line art",name:(0,a.__)("Line Art","imajinn-ai")},{id:"crayon drawing",name:(0,a.__)("Crayon","imajinn-ai")},{id:"pastel drawing, artistic",name:(0,a.__)("Pastel","imajinn-ai")},{id:"chalkboard drawing",name:(0,a.__)("Chalkboard","imajinn-ai")}]},{id:"animation",name:(0,a.__)("Animation","imajinn-ai"),children:[{id:"vintage disney animation",name:(0,a.__)("Vintage Disney","imajinn-ai")},{id:"Rendered by octane, disney animation studios",name:(0,a.__)("Disney Animation","imajinn-ai")},{id:"simpsons style animation",name:(0,a.__)("Simpsons","imajinn-ai")},{id:"anime style, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, trending on artstation",name:(0,a.__)("Anime","imajinn-ai")},{id:"pixar 3D animation",name:(0,a.__)("Pixar","imajinn-ai")}]},{id:"unreal engine, 3d render, Rendered by octane",name:(0,a.__)("Screen","imajinn-ai"),children:[{id:"Unreal Engine, Cinema 4D",name:(0,a.__)("Video Game HD","imajinn-ai")},{id:"animal crossing, mario, nintendo, pokemon",name:(0,a.__)("Nintendo","imajinn-ai")},{id:"3D render, composite",name:(0,a.__)("3D Render","imajinn-ai")},{id:"8bit graphics",name:(0,a.__)("8bit","imajinn-ai")},{id:"emoji",name:(0,a.__)("Emoji","imajinn-ai")},{id:"low poly ps1 graphics",name:(0,a.__)("Low Poly","imajinn-ai")},{id:"pixel art",name:(0,a.__)("Pixel Art","imajinn-ai")},{id:"ASCII art",name:(0,a.__)("ASCII","imajinn-ai")}]},{id:"realistic",name:(0,a.__)("Real Life Materials","imajinn-ai"),children:[{children:[{id:"marble statue",name:(0,a.__)("Marble","imajinn-ai")},{id:"stone statue",name:(0,a.__)("stone","imajinn-ai")},{id:"statue carved from wax",name:(0,a.__)("Wax","imajinn-ai")}],id:"statue",name:(0,a.__)("Statue","imajinn-ai")},{id:"origami paper folding",name:(0,a.__)("Origami","imajinn-ai")},{id:"paper mache art",name:(0,a.__)("Paper Mache","imajinn-ai")},{id:"paper cutout art",name:(0,a.__)("Paper Cutout","imajinn-ai")},{id:"graffiti street art",name:(0,a.__)("Graffiti","imajinn-ai")},{id:"halftone print",name:(0,a.__)("Halftone","imajinn-ai")},{id:"cross stitch art",name:(0,a.__)("Cross Stitch","imajinn-ai")},{id:"stained glass",name:(0,a.__)("Stained Glass","imajinn-ai")},{id:"made of crystals",name:(0,a.__)("Crystal","imajinn-ai")},{id:"made of flowers",name:(0,a.__)("Flowery","imajinn-ai")}]}],artists:[{value:"",label:(0,a.__)("No Artist","imajinn-ai")},{value:"by Albert Bierstadt",label:(0,a.__)("Albert Bierstadt","imajinn-ai")},{value:"by Andy Warhol",label:(0,a.__)("Andy Warhol","imajinn-ai")},{value:"by Asaf Hanuka",label:(0,a.__)("Asaf Hanuka","imajinn-ai")},{value:"by Aubrey Beardsley",label:(0,a.__)("Aubrey Beardsley","imajinn-ai")},{value:"by Claude Monet",label:(0,a.__)("Claude Monet","imajinn-ai")},{value:"by Diego Rivera",label:(0,a.__)("Diego Rivera","imajinn-ai")},{value:"by Frida Kahlo",label:(0,a.__)("Frida Kahlo","imajinn-ai")},{value:"by Greg Rutkowski",label:(0,a.__)("Greg Rutkowski","imajinn-ai")},{value:"by Hayao Miyazaki",label:(0,a.__)("Hayao Miyazaki","imajinn-ai")},{value:"by Hieronymus Bosch",label:(0,a.__)("Hieronymus Bosch","imajinn-ai")},{value:"by Jackson Pollock",label:(0,a.__)("Jackson Pollock","imajinn-ai")},{value:"by Leonardo da Vinci",label:(0,a.__)("Leonardo da Vinci","imajinn-ai")},{value:"by Michelangelo",label:(0,a.__)("Michelangelo","imajinn-ai")},{value:"by Pablo Picasso",label:(0,a.__)("Pablo Picasso","imajinn-ai")},{value:"by Salvador Dali",label:(0,a.__)("Salvador Dali","imajinn-ai")},{value:"by artgerm, art germ",label:(0,a.__)("Stanley Artgerm","imajinn-ai")},{value:"by Vincent van Gogh",label:(0,a.__)("Vincent van Gogh","imajinn-ai")}],modifiers:[{value:"",label:(0,a.__)("No Modifier","imajinn-ai")},{value:"in the style of steampunk",label:(0,a.__)("Steampunk","imajinn-ai")},{value:"synthwave",label:(0,a.__)("Synthwave","imajinn-ai")},{value:"in the style of cyberpunk",label:(0,a.__)("Cyberpunk","imajinn-ai")},{value:"insanely detailed and intricate, hypermaximalist, elegant, ornate, hyper realistic, super detailed",label:(0,a.__)("Detailed & Intricate","imajinn-ai")},{value:"n a symbolic and meaningful style, insanely detailed and intricate, hypermaximalist, elegant, ornate, hyper realistic, super detailed",label:(0,a.__)("Symbolic & Meaningful","imajinn-ai")},{value:"Cinematic Lighting",label:(0,a.__)("Cinematic Lighting","imajinn-ai")},{value:"Contre-Jour",label:(0,a.__)("Contre-Jour","imajinn-ai")},{value:"futuristic",label:(0,a.__)("Futuristic","imajinn-ai")},{value:"black and white",label:(0,a.__)("Black & White","imajinn-ai")},{value:"technicolor",label:(0,a.__)("Technicolor","imajinn-ai")},{value:"warm color palette",label:(0,a.__)("Warm","imajinn-ai")},{value:"neon",label:(0,a.__)("Neon","imajinn-ai")},{value:"colorful",label:(0,a.__)("Colorful","imajinn-ai")}]};(0,e.registerBlockType)(v,{edit:function(){const[e,n]=(0,i.useState)(IMAJINN.connected),[l,w]=(0,i.useState)(!1),[_,k]=(0,i.useState)(null),[I,S]=(0,i.useState)(null),[A,L]=(0,i.useState)([]),[N,T]=(0,i.useState)(IMAJINN.history),[P,B]=(0,i.useState)(null),[D,R]=(0,i.useState)(0),[O,F]=(0,i.useState)(""),[Y,z]=(0,i.useState)(""),[V,G]=(0,i.useState)("1:1"),[W,J]=(0,i.useState)(V),[H,U]=(0,i.useState)(IMAJINN.remaining_credits),[q,Z]=(0,i.useState)(!1),[$,K]=(0,i.useState)(""),[Q,X]=(0,i.useState)(""),[ee,te]=(0,i.useState)(""),[ne,ie]=(0,i.useState)([]),[ae,re]=(0,i.useState)([]);(0,i.useEffect)((()=>{IMAJINN.remaining_credits=H,H>0&&Z(!1)}),[H]),(0,i.useEffect)((()=>{IMAJINN.history=N}),[N]),(0,i.useEffect)((()=>{z([O,$,Q,ee].filter(Boolean).join(", "))}),[O,$,Q,ee]);const oe=(0,r.useBlockProps)(),le=(e,t)=>{if(H<=0&&ce(),H-1<=0)return Z(!0),!1;const n=e||null,i=t||V;S(null),L([]),re([]),ie([]),J(i),w(!0),k(null),R(0),fetch(`${ajaxurl}?action=imajinn-start-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:Y,ratio:i,num_variations:4,init_image:n,nonce:IMAJINN.nonce})}).then((e=>e.json())).then((e=>{e.success?(S(e.data.job_id),B(e.data.status),U(e.data.remaining_credits),R(e.data.progress),se(e.data.job_id)):(w(!1),S(null),B(null),k(e.data[0].message))})).catch((e=>{w(!1),S(null),B(null),k(e)}))},se=async e=>{if(!e)return w(!1),S(null),!1;setTimeout((async()=>{const t=await fetch(`${ajaxurl}?action=imajinn-check-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({job_id:e,nonce:IMAJINN.nonce})}),n=await t.json();n.success?(B(n.data.status),R(n.data.progress),U(n.data.remaining_credits),"succeeded"===n.data.status?(L(n.data.generations),T((e=>[{prompt:Y,ratio:V,generations:n.data.generations},...e]))):"failed"===n.data.status&&(k(n.data.error),B(null),w(!1),S(null)),"starting"===n.data.status||"processing"===n.data.status?se(e):(B(null),w(!1),S(null))):(B(null),w(!1),S(null),k(n.data[0].message))}),4e3)},ce=async()=>{const e=await fetch(`${ajaxurl}?action=imajinn-refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nonce:IMAJINN.nonce})}),t=await e.json();t.success?U(t.data.remaining_credits):k(t.data[0].message)},ue=async e=>{let t=A[e].jpg;const n=await fetch(`${ajaxurl}?action=imajinn-save-image`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t,prompt:Y,post_id:wp.data.select("core/editor").getCurrentPostId(),nonce:IMAJINN.nonce})}),i=await n.json();return!!i.success&&(ie((t=>[...t,{index:e,data:i.data}])),wp.data.dispatch("core/notices").createNotice("success",(0,a.__)("Image saved to media library.","imajinn-ai"),{type:"snackbar",isDismissible:!0,actions:[]}),i.data)},me=e=>{let t=A[e.genindex].jpg;return(0,i.createElement)(o.Button,{icon:u,label:(0,a.__)("Generate Variations","imajinn-ai"),onClick:()=>{G(W),le(t,W)}})},de=e=>{const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{ae.some((t=>t.index===e.genindex))?(l(!0),n(!1)):(l(!1),n(!1))}),[ae]),t?(0,i.createElement)(o.Button,{disabled:!0,icon:(0,i.createElement)(o.Spinner,null),label:(0,a.__)("Repairing","imajinn-ai")}):(0,i.createElement)(o.Button,{disabled:r,icon:m,label:(0,a.__)("Face Repair","imajinn-ai"),onClick:async()=>{n(!0),await(async e=>{let t=A[e].jpg;const n=await fetch(`${ajaxurl}?action=imajinn-face-repair`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image:t,nonce:IMAJINN.nonce})}),i=await n.json();return!!i.success&&(re((t=>[...t,{index:e}])),L((t=>(t[e]=i.data.image,[...t]))),wp.data.dispatch("core/notices").createNotice("success",(0,a.__)("Face repair completed.","imajinn-ai"),{type:"snackbar",isDismissible:!0,actions:[]}),i.data)})(e.genindex)||n(!1)}})},he=e=>{const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{ne.some((t=>t.index===e.genindex))?(l(!0),n(!1)):(l(!1),n(!1))}),[ne]),r?(0,i.createElement)(o.Button,{disabled:!0,icon:d},(0,a.__)("Saved","imajinn-ai")):t?(0,i.createElement)(o.Button,{disabled:!0},(0,i.createElement)(o.Spinner,null)," ",(0,a.__)("Saving","imajinn-ai")):(0,i.createElement)(o.Button,{variant:IMAJINN.custom_editor?"primary":"secondary",disabled:t,icon:h,onClick:async()=>{n(!0),await ue(e.genindex)||n(!1)}},(0,a.__)("Save","imajinn-ai"))},pe=e=>{const[t,n]=(0,i.useState)(!1);return IMAJINN.custom_editor?null:t?(0,i.createElement)(o.Button,{disabled:!0},(0,i.createElement)(o.Spinner,null)):(0,i.createElement)(o.Button,{variant:"primary",className:"imajinn-image-insert",disabled:t,icon:p,onClick:async()=>{n(!0),await(async e=>{let t=!1;if(t=ne.some((t=>t.index===e))?ne.find((t=>t.index===e)).data:await ue(e),t){const e=wp.data.select("core/block-editor").getBlocks().map((function(e){return"imajinn-ai/text2image"==e.name})).indexOf(!0),n=wp.blocks.createBlock("core/image",{id:t.attachment_id,url:t.url,width:t.width,height:t.height,sizeSlug:t.size,alt:Y,title:Y});return wp.data.dispatch("core/block-editor").insertBlocks(n,e),!0}return!1})(e.genindex)||n(!1)}},(0,a.__)("Insert","imajinn-ai"))},ge=e=>{let{...t}=e;return(0,i.createElement)(o.CardFooter,null,(0,i.createElement)(o.ButtonGroup,{className:"imajinn-image-actions"},(0,i.createElement)(o.Button,{href:`${ajaxurl}?action=imajinn-tweet&image=${t.src}`,target:"_blank",icon:f,label:(0,a.__)("Share on Twitter","imajinn-ai")}),(0,i.createElement)(me,t),(0,i.createElement)(de,t)),(0,i.createElement)(o.ButtonGroup,null,(0,i.createElement)(he,t),(0,i.createElement)(pe,t)))},fe=e=>{let{...n}=e;return(0,i.createElement)(o.Card,null,(0,i.createElement)(o.CardMedia,{style:{width:n.width,height:n.height}},(0,i.createElement)("img",t({className:"generation-zoom",alt:n.alt||n.label},n))),(0,i.createElement)(ge,n))},ye=A.length?"":v.description;return(0,i.createElement)("figure",oe,(0,i.createElement)((t=>{const[n,l]=(0,i.useState)(!1),[s,c]=(0,i.useState)("refreshing-button");return(0,i.useEffect)((()=>{c(n?"refreshing-button is-refreshing":"refreshing-button")}),[n]),(0,i.createElement)(r.BlockControls,null,(0,i.createElement)(o.Toolbar,{label:(0,a.__)("Imajinn AI","imajinn-ai"),className:"imajinn-toolbar"},(0,i.createElement)(o.ToolbarGroup,null,e&&!1!==H&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"credit-label"},(0,a.__)("Credits:","imajinn-ai")),(0,i.createElement)("div",{className:"credits"},H),(0,i.createElement)(o.ToolbarButton,{className:s,disabled:n,icon:(0,i.createElement)(o.Dashicon,{icon:"update"}),label:(0,a.__)("Refresh count","imajinn-ai"),onClick:async()=>{l(!0),await ce(),l(!1)}})),(0,i.createElement)(x,null))))}),null),(0,i.createElement)((t=>{if(!e)return null;if(t.history<=0)return null;const n=t.history.map(((e,t)=>(0,i.createElement)(o.PanelBody,{key:t},(0,i.createElement)("h2",{className:"components-panel__body-title"},e.generations.map(((e,t)=>(0,i.createElement)("img",{key:t,src:e.thumbnail,alt:(0,a.sprintf)((0,a.__)("Result %d","imajinn-ai"),(t+1).toString())}))),(0,i.createElement)(o.Button,{variant:"secondary",label:(0,a.__)("Load prompt results","imajinn-ai"),onClick:()=>{F(e.prompt),L(e.generations),G(e.ratio),J(e.ratio),K(""),X(""),te(""),ie([]),re([])}},(0,a.__)("Load","imajinn-ai"))),(0,i.createElement)(o.PanelRow,null,(0,i.createElement)(o.__experimentalText,{numberOfLines:2,truncate:!0},e.prompt)))));return(0,i.createElement)(r.InspectorControls,{key:"setting"},(0,i.createElement)(o.Panel,{header:(0,a.__)("Generation History","imajinn-ai"),className:"imajinn-history"},n))}),{history:N}),(0,i.createElement)(o.Placeholder,{icon:IMAJINN.custom_editor?null:b.mC,instructions:ye,label:IMAJINN.custom_editor?null:(0,a.__)("AI Text-to-Image Generator","imajinn-ai")},!e&&(0,i.createElement)(C,{setCredits:U,isConnected:e,setIsConnected:n}),e&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)((()=>_?(0,i.createElement)(o.Notice,{status:"warning"},(0,i.createElement)(o.__experimentalText,null,_)):null),null),(0,i.createElement)((()=>{const e="processing"===P?(0,a.sprintf)((0,a.__)("Generating %s%%","imajinn-ai"),D):(0,a.__)("Queued","imajinn-ai");return l?(0,i.createElement)("div",{className:"imajinn-loading"},(0,i.createElement)(b.ZZ,null),(0,i.createElement)("div",null,(0,i.createElement)(o.__experimentalText,null,e),(0,i.createElement)(o.Button,{isDestructive:!0,variant:"link",onClick:()=>{(async()=>{if(!I)return k("Error: No job id"),!1;const e=await fetch(`${ajaxurl}?action=imajinn-cancel-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({job_id:I,nonce:IMAJINN.nonce})}),t=await e.json();t.success?(B(null),w(!1),S(null),U(t.data.remaining_credits)):k(t.data[0].message)})()}},(0,a.__)("Cancel")))):null}),null),(0,i.createElement)((e=>{let{...n}=e;const[a,r]=(0,i.useState)("400px"),[l,s]=(0,i.useState)("400px");if((0,i.useEffect)((()=>{r(1===A.length?"400px":"300px"),"3:2"===W?s(1===A.length?"266px":"200px"):"2:3"===W?(s("450px"),r("300px")):s(1===A.length?"400px":"300px")}),[A,W]),0===A.length)return null;const c=A.map(((e,t)=>(0,i.createElement)(o.FlexBlock,{style:{minWidth:a,flexGrow:0},key:t.toString()},(0,i.createElement)(fe,{src:e.preview,genindex:t,width:a,height:l,label:"Result "+(t+1).toString()}))));return(0,i.createElement)(o.Flex,t({},n,{align:"center",wrap:"true",gap:0,justify:"space-around",className:"results-grid"}),c)}),null),(0,i.createElement)("div",{className:"prompt-form"},(0,i.createElement)(o.TextareaControl,{disabled:l,maxLength:450,value:O,label:(0,i.createElement)(i.Fragment,null,(0,a.__)("Prompt - Enter a detailed English description of the image you would like to generate.","imajinn-ai"),(0,i.createElement)(E,null)),className:"text-prompt",onChange:e=>F(e)}),(0,i.createElement)("div",{className:"styles-form"},(0,i.createElement)((e=>(0,i.createElement)(o.TreeSelect,{disabled:l,label:(0,a.__)("Select an image style","imajinn-ai"),noOptionLabel:(0,a.__)("No Style","imajinn-ai"),selectedId:$,onChange:e=>{K(e)},__next36pxDefaultSize:!0,tree:M.styles})),null),(0,i.createElement)((e=>(0,i.createElement)(o.SelectControl,{__next36pxDefaultSize:!0,allowReset:!0,disabled:l,label:(0,a.__)("Select an Artist style to mimic","imajinn-ai"),value:Q,onChange:e=>{X(e)},options:M.artists})),null),(0,i.createElement)((e=>(0,i.createElement)(o.SelectControl,{__next36pxDefaultSize:!0,allowReset:!0,disabled:l,label:(0,a.__)("Select a style modifier","imajinn-ai"),value:ee,onChange:e=>{te(e)},options:M.modifiers})),null),(0,i.createElement)(o.Button,{icon:g,disabled:l,label:(0,a._x)("Clear styles","clear the image style selects","imajinn-ai"),onClick:()=>{K(""),X(""),te("")}}))),(0,i.createElement)(o.Flex,{align:"top",wrap:"true"},(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((()=>{const e={"1:1":(0,a.__)("Square","imajinn-ai"),"3:2":(0,a.__)("Wide","imajinn-ai"),"2:3":(0,a.__)("Tall","imajinn-ai")}[V]+" images"+("1:1"!==V?" - "+(0,a.__)("slower to generate","imajinn-ai"):"");return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.__experimentalRadioGroup,{id:"imajinn-ratio",label:(0,a.__)("Select an image ratio to generate.","imajinn-ai"),defaultChecked:"1:1",disabled:l,onChange:G,checked:V},(0,i.createElement)(o.__experimentalRadio,{value:"1:1",icon:s},"1:1"),(0,i.createElement)(o.__experimentalRadio,{value:"3:2",icon:c},"3:2"),(0,i.createElement)(o.__experimentalRadio,{className:"ratio-3-2",value:"2:3",icon:c},"2:3")),(0,i.createElement)("br",null),(0,i.createElement)(o.__experimentalText,null,e))}),null)),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((e=>(0,i.createElement)(o.Button,{isPrimary:!0,disabled:l,onClick:()=>{le()}},(0,a.__)("Generate","imajinn-ai"))),null),(0,i.createElement)((e=>{const[n,r]=(0,i.useState)(e.showUpgrade),l=()=>{r(!1),e.setShowUpgrade(!1)};return(0,i.useEffect)((()=>{r(e.showUpgrade)}),[r,e]),(0,i.createElement)(i.Fragment,null,n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"400px"},icon:(0,i.createElement)(o.Icon,{icon:y}),title:(0,a.__)("Upgrade Plan","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)("Sorry, you are out of available image generation credits. You can get more credits by upgrading your account to one of our premium plans.","imajinn-ai")),(0,i.createElement)("div",{className:"imajinn-upgrade-modal-buttons"},(0,i.createElement)(o.Button,{variant:"primary",href:IMAJINN.checkout_url,target:"_blank"},(0,a.__)("Get More Credits","imajinn-ai")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a._x)("Cancel","Don't upgrade now","imajinn-ai")))))}),{showUpgrade:q,setShowUpgrade:Z})))),(0,i.createElement)((()=>IMAJINN.custom_editor?null:(0,i.createElement)("div",{className:"corner-controls"},(0,i.createElement)(x,null),(0,i.createElement)(o.Button,{className:"imajinn-close-button",icon:g,label:(0,a.__)("Close Imajinn Block","imajinn-ai"),onClick:()=>{(()=>{const{removeBlocks:e}=wp.data.dispatch("core/block-editor");e(wp.data.select("core/block-editor").getSelectedBlockClientIds())})()}}))),null)),(0,i.createElement)("div",{className:"imajinn-footer"},(0,i.createElement)(o.Button,{onClick:()=>{(async()=>{const e=await fetch(`${ajaxurl}?action=imajinn-account-url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nonce:IMAJINN.nonce})}),t=await e.json();t.success?window.open(t.data.account_url,"_blank"):k(t.data[0].message)})()}},(0,a.__)("Account","imajinn-ai")),(0,i.createElement)(j,null),(0,i.createElement)("a",{href:"https://infiniteuploads.com/support/",target:"_blank"},(0,a.__)("Support","imajinn-ai")),(0,i.createElement)("span",{className:"imajinn-credits"},(0,a._x)("Made with ","Made with love by Infinite Uploads","imajinn-ai"),(0,i.createElement)(o.Dashicon,{icon:"heart","aria-label":(0,a._x)("love","Made with love by Infinite Uploads","imajinn-ai")}),(0,a._x)(" by ","Made with love by Infinite Uploads","imajinn-ai"),(0,i.createElement)("a",{href:"https://infiniteuploads.com/",target:"_blank"},"Infinite Uploads"))))},save:function(){return null},icon:b.DT})}()}();
  • imajinn-ai/tags/1.2/imajinn-ai.php

    r2786107 r2786215  
    55 * Requires at least: 6.0
    66 * Requires PHP:      7.0
    7  * Version:           1.1
     7 * Version:           1.2
    88 * Author:            Infinite Uploads
    99 * Author URI:        https://infiniteuploads.com
     
    2020 */
    2121
    22 define( 'IMAJINN_AI_VERSION', '1.1' );
     22define( 'IMAJINN_AI_VERSION', '1.2' );
    2323
    2424class Imajinn_AI {
     
    6060        add_action( 'wp_ajax_imajinn-check-job', [ &$this, 'ajax_check_job' ] );
    6161        add_action( 'wp_ajax_imajinn-cancel-job', [ &$this, 'ajax_cancel_job' ] );
     62        add_action( 'wp_ajax_imajinn-face-repair', [ &$this, 'ajax_face_repair' ] );
    6263        add_action( 'wp_ajax_imajinn-save-image', [ &$this, 'ajax_save_image' ] );
    6364        add_action( 'wp_ajax_imajinn-tweet', [ &$this, 'ajax_tweet_url' ] );
     
    308309        $num_variations = absint( $params['num_variations'] );
    309310
    310         $job = $this->api_request( sprintf( 'site/%s/generate', $this->get_site_id() ), compact( 'prompt', 'ratio', 'num_variations' ) );
     311        $init_image = esc_url_raw( $params['init_image'] );
     312
     313        $job = $this->api_request( sprintf( 'site/%s/generate', $this->get_site_id() ), compact( 'prompt', 'ratio', 'num_variations', 'init_image' ) );
    311314        if ( is_wp_error( $job ) ) {
    312315            wp_send_json_error( $job );
     
    391394        $params = $this->check_ajax();
    392395
    393         $params  = json_decode( file_get_contents( 'php://input' ), true );
    394396        $image   = esc_url_raw( $params['url'] );
    395397        $prompt  = sanitize_text_field( $params['prompt'] );
     
    411413        list( $url, $width, $height ) = wp_get_attachment_image_src( $attachment_id, $size );
    412414        wp_send_json_success( compact( 'attachment_id', 'url', 'width', 'height', 'size' ) );
     415    }
     416
     417    function ajax_face_repair() {
     418
     419        // check caps
     420        $params = $this->check_ajax();
     421
     422        $image   = esc_url_raw( $params['image'] );
     423
     424        //make api call to fix the image
     425        $result = $this->api_request( sprintf( 'site/%s/face_repair', $this->get_site_id() ), compact( 'image' ) );
     426        if ( is_wp_error( $result ) ) {
     427            wp_send_json_error( $result );
     428        }
     429
     430        wp_send_json_success( $result );
    413431    }
    414432
  • imajinn-ai/tags/1.2/readme.txt

    r2786107 r2786215  
    1 === Imajinn - Magical AI Image Generation like DALL·E 2 ===
     1=== Imajinn - Magical AI Image Generation like DALL·E ===
    22
    33Requires at least: 5.9
    44Tested up to: 6.0
    5 Stable tag: 1.1
     5Stable tag: 1.2
    66Requires PHP: 7.2
    77Contributors: uglyrobot, jdailey
    8 Tags: AI, DALLE, image generator, stock photos, images, art, Diffusion
     8Tags: AI, DALLE, image generator, stock photos, art, diffusion
    99License: GPLv2
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1616**Imajinn brings the magic of AI image generation to WordPress**
    1717
    18 Imajinn is a WordPress plugin that brings the power of AI image generation to your website. Similar to tools like [DALL·E 2](https://openai.com/dall-e-2/), Imajinn lets you generate images for any topic with just your imagination. Just enter a description of what you would like to create, and Imajinn will generate a stunning image for you in seconds.
     18Imajinn is a WordPress plugin that brings the power of AI image generation to your website. Similar to tools like [DALL·E 2](https://openai.com/dall-e-2/), Midjourney, and Stable Diffusion, Imajinn lets you generate images for any topic with just your imagination. Just enter a description of what you would like to create, and Imajinn will generate a stunning image for you in seconds.
    1919
    2020Running on the latest in AI technology, Imajinn is able to generate images that are indistinguishable from real photos and art. The images are royalty-free, so you can use them on your website without worrying about licensing issues. It's like having a full-time graphic design assistant on your team that follows your every command. Your only limitation is your imagination.
    2121
    22 ### Imajinn AI - Plugin Features
     22#### Imajinn AI - Plugin Features
    2323
    2424- **Generate images with AI** - Just type in a prompt and Imajinn will generate a stunning image for you to use on your site.
     
    2828- **Style presets** - Customize your images with a variety of preset options like art medium, artist style, and more!
    2929- **History** - Easily view and jump back to previous image generations to modify and customize your prompts.
     30- **Create variations** - Generate more variations of your favorite images with a similar style and layout.
     31- **Face repair** - AI-based facial restoration to restore facial details and enhance colors with a good balance of realness and fidelity.
    3032- **Media page** - Generate images outside of the Gutenberg editor for support with any theme builder.
    3133- **Easy-connect** – No confusing API keys. Simply click to connect
     
    3436- **Unlimited users** – Any WordPress user on any site can use the Imajinn Block to generate images.
    3537- **Unlimited sites** - You can connect just one site, hundreds, or thousands...no extra license costs.
     38
     39#### Sparking the WordPress world's Imajinn-ation:
    3640
    3741★★★★★
     
    5761
    5862Once you install the plugin, simply insert the "Imajinn AI" Gutenberg block in any post or page editor, or visit the Media->Imajinn AI page. You will be prompted to create a free account or connect to your existing account right in the block, and then you can start generating images right away.
     63
     64Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Infinite Uploads/Imajinn AI email and password.
    5965
    6066== Frequently Asked Questions ==
     
    1091151. The Imajinn AI block with generated images and prompt history.
    1101161. Generating images from a prompt with style presets.
    111 1. Saving upscaled images to your WordPress media library and inserting them as an image block.
     1171. Saving high-resolution images to your WordPress media library and inserting them as an image block.
    1121181. Media admin page for generating images outside of Gutenberg.
     1191. Generate variations of an image with a similar style and layout.
     1201. AI-based facial restoration to restore facial details and enhance colors with a good balance of realness and fidelity.
    113121
    114122== Changelog ==
    115123
     1241.2 - 2022-9-16
     125----------------------------------------------------------------------
     126- New: Generate variations of an image with a similar style and layout.
     127- New: AI-based facial restoration to restore facial details and enhance colors with a good balance of realness and fidelity.
     128- Fix: Hide history when plugin is not connected.
     129
    1161301.1 - 2022-9-16
    117 ------------
    118 - Save prompt history between sessions
     131----------------------------------------------------------------------
     132- Save prompt history between sessions for easy reuse and modification.
    119133
    1201341.0.1 - 2022-9-15
    121135----------------------------------------------------------------------
    122 - ----------------------------------------------------------
    123136- Fix missing prompt history in standalone media page
    124137- Optimize size of admin css and js
  • imajinn-ai/trunk/build/block.asset.php

    r2786107 r2786215  
    1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9aa0b6fcff3ae473c475');
     1<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'b0ccd9275de548ed304b');
  • imajinn-ai/trunk/build/block.css

    r2785004 r2786215  
    1 .editor-styles-wrapper .wp-block-infinite-uploads-imajinn-ai p{font-size:120%}.imajinn-upgrade-modal-buttons{text-align:right}.imajinn-upgrade-modal-buttons a,.imajinn-upgrade-modal-buttons button{float:right;margin-left:10px}.wp-block-infinite-uploads-imajinn-ai .components-spinner{background-color:inherit}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__label svg{fill:#000}.wp-block-infinite-uploads-imajinn-ai .components-notice{margin-bottom:10px;width:100%}.wp-block-infinite-uploads-imajinn-ai .results-grid{gap:16px;margin-bottom:20px}.wp-block-infinite-uploads-imajinn-ai img.generation-zoom{transition:transform .2s}.wp-block-infinite-uploads-imajinn-ai img.generation-zoom:hover{border-radius:3px;box-shadow:0 0 10px rgba(0,0,0,.4);position:absolute;transform:scale(1.25);z-index:100}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__fieldset .components-button,.wp-block-infinite-uploads-imajinn-ai button{margin:0}.wp-block-infinite-uploads-imajinn-ai button.ratio-3-2 svg{transform:rotate(90deg) scaleX(-1)}.wp-block-infinite-uploads-imajinn-ai .credits{font-size:20px!important;font-weight:lighter;margin:0}.wp-block-infinite-uploads-imajinn-ai .corner-controls{align-items:center;display:flex;position:absolute;right:10px;top:10px}.wp-block-infinite-uploads-imajinn-ai .corner-controls div{padding:6px}.wp-block-infinite-uploads-imajinn-ai .prompt-form{margin-bottom:5px;width:100%}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form{align-items:flex-end;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-bottom:20px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-base-control{display:inline-block;margin-right:20px;width:175px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-base-control:last-of-type{margin-right:0}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-button{margin-bottom:5px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-button svg{height:15px}.wp-block-infinite-uploads-imajinn-ai .text-prompt{width:100%}.wp-block-infinite-uploads-imajinn-ai .prompt-tips{height:20px;padding:0;width:20px}.wp-block-infinite-uploads-imajinn-ai .prompt-tips svg{height:20px;width:20px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button{color:gray;font-size:13px;text-align:right}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer .dashicon,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button .dashicon{font-size:13px;height:13px;line-height:1.9;width:13px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer a,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button a{margin-right:10px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer .imajinn-credits,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button .imajinn-credits{display:inline-block}.wp-block-infinite-uploads-imajinn-ai .connect-wrapper{align-content:space-between;align-items:end;margin-top:10px}.wp-block-infinite-uploads-imajinn-ai .connect-wrapper .components-base-control__help{font-size:80%}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__fieldset .components-button.connect-button{margin-bottom:8px}.wp-block-infinite-uploads-imajinn-ai .license-links{margin-bottom:10px;margin-left:30px}.wp-block-infinite-uploads-imajinn-ai .license-links .components-external-link{margin-right:12px}.wp-block-infinite-uploads-imajinn-ai .components-notice .components-external-link{margin-left:5px}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading{margin:40px auto}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading .components-button{margin-left:5px}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading .imajinn-spinner{display:block;height:100px;margin:0 auto;width:100px}.imajinn-history .components-panel__body-title{height:50px}.imajinn-history .components-panel__body-title .components-button{float:right;margin-right:10px;margin-top:7px}.imajinn-history .components-panel__body-title img{float:left;height:50px;width:50px}.imajinn-history .components-panel__row{clear:both}.imajinn-toolbar .credit-label{padding:24px 0 24px 6px}.imajinn-toolbar .credits{font-size:18px;padding:24px 0 24px 6px}.imajinn-toolbar .refreshing-button{padding-left:0}.imajinn-toolbar .refreshing-button .dashicon{color:gray}.imajinn-toolbar .refreshing-button.is-refreshing .dashicon{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
     1.editor-styles-wrapper .wp-block-infinite-uploads-imajinn-ai p{font-size:120%}.imajinn-upgrade-modal-buttons{text-align:right}.imajinn-upgrade-modal-buttons a,.imajinn-upgrade-modal-buttons button{float:right;margin-left:10px}.wp-block-infinite-uploads-imajinn-ai .components-spinner{background-color:inherit}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__label svg{fill:#000}.wp-block-infinite-uploads-imajinn-ai .components-notice{margin-bottom:10px;width:100%}.wp-block-infinite-uploads-imajinn-ai .results-grid{gap:16px;margin-bottom:20px}.wp-block-infinite-uploads-imajinn-ai img.generation-zoom{transition:transform .2s}.wp-block-infinite-uploads-imajinn-ai img.generation-zoom:hover{border-radius:3px;box-shadow:0 0 10px rgba(0,0,0,.4);position:absolute;transform:scale(1.25);z-index:100}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__fieldset .components-button,.wp-block-infinite-uploads-imajinn-ai button{margin:0}.wp-block-infinite-uploads-imajinn-ai button.ratio-3-2 svg{transform:rotate(90deg) scaleX(-1)}.wp-block-infinite-uploads-imajinn-ai .credits{font-size:20px!important;font-weight:lighter;margin:0}.wp-block-infinite-uploads-imajinn-ai .corner-controls{align-items:center;display:flex;position:absolute;right:10px;top:10px}.wp-block-infinite-uploads-imajinn-ai .corner-controls div{padding:6px}.wp-block-infinite-uploads-imajinn-ai .prompt-form{margin-bottom:5px;width:100%}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form{align-items:flex-end;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-bottom:20px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-base-control{display:inline-block;margin-right:20px;width:175px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-base-control:last-of-type{margin-right:0}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-button{margin-bottom:5px}.wp-block-infinite-uploads-imajinn-ai .prompt-form .styles-form .components-button svg{height:15px}.wp-block-infinite-uploads-imajinn-ai .text-prompt{width:100%}.wp-block-infinite-uploads-imajinn-ai .prompt-tips{height:20px;padding:0;width:20px}.wp-block-infinite-uploads-imajinn-ai .prompt-tips svg{height:20px;width:20px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button{color:gray;font-size:13px;text-align:right}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer .dashicon,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button .dashicon{font-size:13px;height:13px;line-height:1.9;width:13px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer a,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button a{margin-right:10px}.wp-block-infinite-uploads-imajinn-ai .imajinn-footer .imajinn-credits,.wp-block-infinite-uploads-imajinn-ai .imajinn-footer button .imajinn-credits{display:inline-block}.wp-block-infinite-uploads-imajinn-ai .connect-wrapper{align-content:space-between;align-items:end;margin-top:10px}.wp-block-infinite-uploads-imajinn-ai .connect-wrapper .components-base-control__help{font-size:80%}.wp-block-infinite-uploads-imajinn-ai .components-placeholder__fieldset .components-button.connect-button{margin-bottom:8px}.wp-block-infinite-uploads-imajinn-ai .license-links{margin-bottom:10px;margin-left:30px}.wp-block-infinite-uploads-imajinn-ai .license-links .components-external-link{margin-right:12px}.wp-block-infinite-uploads-imajinn-ai .components-notice .components-external-link{margin-left:5px}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading{margin:40px auto}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading .components-button{margin-left:5px}.wp-block-infinite-uploads-imajinn-ai .imajinn-loading .imajinn-spinner{display:block;height:100px;margin:0 auto;width:100px}.wp-block-infinite-uploads-imajinn-ai .components-card-footer{padding:10px}.wp-block-infinite-uploads-imajinn-ai .components-card-footer .imajinn-image-insert{margin-left:10px}.wp-block-infinite-uploads-imajinn-ai .components-card-footer .components-button-group.imajinn-image-actions .components-button{box-shadow:none}.imajinn-history .components-panel__body-title{height:50px}.imajinn-history .components-panel__body-title .components-button{float:right;margin-right:10px;margin-top:7px}.imajinn-history .components-panel__body-title img{float:left;height:50px;width:50px}.imajinn-history .components-panel__row{clear:both}.imajinn-toolbar .credit-label{padding:24px 0 24px 6px}.imajinn-toolbar .credits{font-size:18px;padding:24px 0 24px 6px}.imajinn-toolbar .refreshing-button{padding-left:0}.imajinn-toolbar .refreshing-button .dashicon{color:gray}.imajinn-toolbar .refreshing-button.is-refreshing .dashicon{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:spin;animation-name:spin;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.media_page_imajinn-ai{background-color:#fff}.media_page_imajinn-ai #wpfooter{display:none}
  • imajinn-ai/trunk/build/block.js

    r2786107 r2786215  
    1 !function(){"use strict";var e={684:function(e,t,n){n.d(t,{DT:function(){return a},ZZ:function(){return o},mC:function(){return r}});var i=n(307);function a(){return(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68.99 99",height:"30",width:"30"},(0,i.createElement)("path",{d:"M65.19,60.78c3.9-3.9,6.19-17.59-.2-23.67-4.3-2.8-10.87,1.08-18.09,.8-.51-.02-1.02,.07-1.49,.26-.67,.28-1.44,.72-2.26,1.42-2.56,2.19-5.99,3.51-8.31,2.21-1.84-1.23-1.39-3.92-1.31-4.32-3.97,.8-4.55-.88-8.17,.24-6.84,2.12-18.72,17.38-9.96,22.27,3.89,1.73,11.79,.79,11.79,.79,0,0,6.33,8.55,.95,12.41-5.03,3.61-9.48-.45-15.51-.97-12.95-1.21-19.27,16.96-2.54,26.78-3.64-6.18-4.42-14.42,3.76-14.42,5.68,0,13.27,8.43,24.48,7.03,9.69-1.21,13.03-5.15,17.38-16.07,2.01-4.71,6.92-10.71,6.92-10.71-6.91,2.54-10.67-.61-14.5-1.96-3.83-1.34-8.87-2.09-8.87-2.09,6.29,0,11.48,2.43,15.72,3.05,4.07,.6,7.6-.43,10.22-3.05Z"}),(0,i.createElement)("path",{d:"M54.55,13.82c-2.78-2.37-5.77-6.73-8.76-7.16-4.03-.58-5.66,1.64-6.51,4.46,0-.19-.01-.38-.03-.57L38.55,.04c0-.05-.08-.05-.08,0l-.88,10.25c-.1,1.36,.04,2.72,.4,4.03l.58,1.15c-.02,.39-.01,.62-.01,.62-1.14,1.24-1.97,3.51-2.59,5.14l.53,1.44s.1,2.24-1.84,4.55c0,0-1.2,1.43-1.34,1.77-.17,.4-.16,.96,.47,1.01,.64,.05,2.02,.23,2.02,.23l-.03,2.06c0,.58,.27,2.39,.42,2.86,.58,1.79,.37,3.29-.15,3.43-1.56,.45-1.92-1.14-1.92-1.14,0,0-1.22,4.58,3.55,3.85,3.06-.47,4.72-4.09,7.57-5.19h0c.18-.07,.36-.1,.55-.11,4.53-.1,7.41-.84,7.93-3.92,4.84-.42,6.65-2.72,7.81-7.44,1.21-4.91-2.73-7.17-7.01-10.81Z"}))}function r(){return(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"55.435381255341",height:"60",viewBox:"0 0 1167.58 1263.72",version:"1.1"},(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:"clip1"},(0,i.createElement)("path",{d:"M 525 1006 L 595 1006 L 595 1263.71875 L 525 1263.71875 Z M 525 1006 "})),(0,i.createElement)("clipPath",{id:"clip2"},(0,i.createElement)("path",{d:"M 1018 1006 L 1167.578125 1006 L 1167.578125 1212 L 1018 1212 Z M 1018 1006 "}))),(0,i.createElement)("g",{id:"surface1"},(0,i.createElement)("path",{d:"M 883.503906 564.917969 C 919.703125 528.71875 941.007813 401.410156 881.6875 344.964844 C 841.726563 318.957031 780.652344 354.957031 713.5625 352.410156 C 708.824219 352.230469 704.105469 353.039063 699.722656 354.847656 C 693.507813 357.414063 686.355469 361.507813 678.730469 368.042969 C 654.972656 388.40625 623.070313 400.625 601.488281 388.585938 C 584.429688 377.132813 588.597656 352.140625 589.332031 348.394531 C 552.476563 355.824219 547.042969 340.191406 513.355469 350.644531 C 449.75 370.382813 339.335938 512.171875 420.820313 557.613281 C 456.992188 573.714844 530.402344 564.917969 530.402344 564.917969 C 530.402344 564.917969 589.253906 644.367188 539.238281 680.246094 C 492.445313 713.808594 451.089844 676.105469 395.078125 671.234375 C 274.757813 660.003906 216.007813 828.910156 371.429688 920.136719 C 337.640625 862.695313 330.320313 786.113281 406.339844 786.113281 C 459.125 786.113281 529.695313 864.453125 633.84375 851.433594 C 723.941406 840.171875 754.910156 803.570313 795.363281 702.039063 C 814.039063 658.285156 859.652344 602.535156 859.652344 602.535156 C 795.457031 626.1875 760.519531 596.839844 724.90625 584.359375 C 689.289063 571.878906 642.421875 564.917969 642.421875 564.917969 C 700.839844 564.917969 749.109375 587.472656 788.523438 593.257813 C 826.324219 598.800781 859.152344 589.269531 883.503906 564.917969 "}),(0,i.createElement)("path",{d:"M 784.621094 128.429688 C 758.757813 106.421875 730.980469 65.921875 703.167969 61.910156 C 665.6875 56.5 650.527344 77.128906 642.636719 103.398438 C 642.59375 101.628906 642.523438 99.859375 642.386719 98.089844 L 635.902344 0.351563 C 635.871094 -0.121094 635.1875 -0.121094 635.15625 0.351563 L 626.976563 95.570313 C 626.089844 108.179688 627.359375 120.851563 630.730469 133.03125 L 636.097656 143.699219 C 635.9375 147.328125 635.964844 149.46875 635.964844 149.46875 C 625.332031 161.011719 617.640625 182.050781 611.933594 197.261719 L 616.851563 210.640625 C 616.851563 210.640625 617.800781 231.441406 599.78125 252.960938 C 599.78125 252.960938 588.667969 266.253906 587.359375 269.429688 C 585.824219 273.152344 585.828125 278.3125 591.742188 278.785156 C 597.652344 279.257813 610.558594 280.914063 610.558594 280.914063 L 610.324219 300.066406 C 610.324219 305.457031 612.859375 322.316406 614.246094 326.636719 C 619.597656 343.292969 617.640625 357.179688 612.886719 358.539063 C 598.386719 362.683594 595.0625 347.902344 595.0625 347.902344 C 595.0625 347.902344 583.699219 390.441406 628.046875 383.652344 C 656.480469 379.300781 671.941406 345.640625 698.414063 335.460938 C 700.050781 334.828125 701.785156 334.496094 703.539063 334.457031 C 745.660156 333.558594 772.402344 326.636719 777.207031 298.027344 C 822.210938 294.09375 838.976563 272.722656 849.785156 228.890625 C 861.050781 183.21875 824.402344 162.28125 784.621094 128.429688 "}),(0,i.createElement)("path",{d:"M 0 1211.832031 L 0 1006.238281 L 14.34375 1006.238281 L 14.34375 1211.832031 L 0 1211.832031 "}),(0,i.createElement)("path",{d:"M 191.785156 1211.832031 L 115.144531 1021.988281 L 114.019531 1021.988281 C 114.769531 1033.609375 115.144531 1045.519531 115.144531 1057.710938 L 115.144531 1211.832031 L 101.363281 1211.832031 L 101.363281 1006.238281 L 123.582031 1006.238281 L 196.425781 1187.082031 L 197.269531 1187.082031 L 270.113281 1006.238281 L 291.769531 1006.238281 L 291.769531 1211.832031 L 277.285156 1211.832031 L 277.285156 1056.019531 C 277.285156 1045.140625 277.847656 1033.890625 278.972656 1022.269531 L 277.847656 1022.269531 L 200.925781 1211.832031 L 191.785156 1211.832031 "}),(0,i.createElement)("path",{d:"M 399.320313 1126.328125 L 472.867188 1126.328125 L 444.882813 1052.21875 C 442.535156 1046.410156 439.722656 1038.351563 436.445313 1028.03125 C 433.914063 1037.03125 431.144531 1045.191406 428.148438 1052.5 Z M 477.648438 1139.269531 L 394.117188 1139.269531 L 365.429688 1211.832031 L 349.539063 1211.832031 L 432.226563 1005.390625 L 441.367188 1005.390625 L 522.367188 1211.832031 L 506.195313 1211.832031 L 477.648438 1139.269531 "}),(0,i.createElement)("g",{clipPath:"url(#clip1)",clipRule:"nonzero"},(0,i.createElement)("path",{d:"M 546.523438 1263.71875 C 537.902344 1263.71875 530.824219 1262.460938 525.289063 1259.921875 L 525.289063 1247.550781 C 532.601563 1249.421875 539.589844 1250.359375 546.242188 1250.359375 C 568.929688 1250.359375 580.273438 1237.988281 580.273438 1213.238281 L 580.273438 1006.238281 L 594.617188 1006.238281 L 594.617188 1211.832031 C 594.617188 1246.421875 578.585938 1263.71875 546.523438 1263.71875 "})),(0,i.createElement)("path",{d:"M 680.230469 1211.832031 L 680.230469 1006.238281 L 694.574219 1006.238281 L 694.574219 1211.832031 L 680.230469 1211.832031 "}),(0,i.createElement)("path",{d:"M 931.078125 1211.832031 L 916.59375 1211.832031 L 794.8125 1029.300781 L 793.6875 1029.300781 C 794.8125 1051.050781 795.375 1067.460938 795.375 1078.519531 L 795.375 1211.832031 L 781.59375 1211.832031 L 781.59375 1006.238281 L 795.9375 1006.238281 L 917.578125 1188.488281 L 918.421875 1188.488281 C 917.578125 1171.609375 917.15625 1155.578125 917.15625 1140.390625 L 917.15625 1006.238281 L 931.078125 1006.238281 L 931.078125 1211.832031 "}),(0,i.createElement)("g",{clipPath:"url(#clip2)",clipRule:"nonzero"},(0,i.createElement)("path",{d:"M 1167.578125 1211.832031 L 1153.101563 1211.832031 L 1031.320313 1029.300781 L 1030.191406 1029.300781 C 1031.320313 1051.050781 1031.878906 1067.460938 1031.878906 1078.519531 L 1031.878906 1211.832031 L 1018.101563 1211.832031 L 1018.101563 1006.238281 L 1032.441406 1006.238281 L 1154.078125 1188.488281 L 1154.929688 1188.488281 C 1154.078125 1171.609375 1153.660156 1155.578125 1153.660156 1140.390625 L 1153.660156 1006.238281 L 1167.578125 1006.238281 L 1167.578125 1211.832031 "}))))}function o(){return(0,i.useEffect)((()=>{var t,i;t=this,i=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}var a=Math.abs;function r(e){return e}function o(e,t,n){var i=1-n;return 3*n*i*(e*i+t*n)+n*n*n}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return e<0||e>1||n<0||n>1?null:a(e-t)<=1e-5&&a(n-i)<=1e-5?r:function(r){if(r<=0)return e>0?r*t/e:0===t&&n>0?r*i/n:0;if(r>=1)return n<1?1+(r-1)*(i-1)/(n-1):1===n&&e<1?1+(r-1)*(t-1)/(e-1):1;for(var l,s=0,c=1;s<c;){var u=o(e,n,l=(s+c)/2);if(a(r-u)<1e-5)break;u<r?s=l:c=l}return o(t,i,l)}}function s(){return 1}function c(e){return 1===e?1:0}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(1===e){if(0===t)return c;if(1===t)return s}var n=1/e;return function(e){return e>=1?1:(e+=t*n)-e%n}}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(Number.isInteger(e))return e;var n=Math.pow(10,t);return Math.round(e*n)/n}var d=Math.PI/180;function h(e,t,n){return e>=.5?n:t}function p(e,t,n){return 0===e||t===n?t:e*(n-t)+t}function g(e,t,n){var i=p(e,t,n);return i<=0?0:i}function f(e,t,n){return 0===e?t:1===e?n:{x:p(e,t.x,n.x),y:p(e,t.y,n.y)}}function y(e,t,n){return 0===e?t:1===e?n:{x:g(e,t.x,n.x),y:g(e,t.y,n.y)}}function v(e,t,n){var i=function(e,t,n){return Math.round(p(e,t,n))}(e,t,n);return i<=0?0:i>=255?255:i}function b(e,t,n){return 0===e?t:1===e?n:{r:v(e,t.r,n.r),g:v(e,t.g,n.g),b:v(e,t.b,n.b),a:p(e,null==t.a?1:t.a,null==n.a?1:n.a)}}function _(e,t,n){if(0===e)return t;if(1===e)return n;var i=t.length;if(i!==n.length)return h(e,t,n);for(var a=[],r=0;r<i;r++)a.push(b(e,t[r],n[r]));return a}function w(e,t,n){var i=t.length;if(i!==n.length)return h(e,t,n);for(var a=new Array(i),r=0;r<i;r++)a[r]=p(e,t[r],n[r]);return a}function E(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function x(e,t){if(--t<=0)return e;var n=(e=Object.assign([],e)).length;do{for(var i=0;i<n;i++)e.push(e[i])}while(--t>0);return e}var j=/\.0+$/g;function k(e){return Number.isInteger(e)?e+"":e.toFixed(6).replace(j,"")}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e&&e.length?e.map(k).join(t):""}function M(e){return k(e.x)+","+k(e.y)}function I(e){return e?null==e.a||e.a>=1?"rgb("+e.r+","+e.g+","+e.b+")":"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":"transparent"}var S={f:null,i:y,u:function(e,t){return function(n){var i=t(n);e.setAttribute("rx",k(i.x)),e.setAttribute("ry",k(i.y))}}},A={f:null,i:function(e,t,n){return 0===e?t:1===e?n:{width:g(e,t.width,n.width),height:g(e,t.height,n.height)}},u:function(e,t){return function(n){var i=t(n);e.setAttribute("width",k(i.width)),e.setAttribute("height",k(i.height))}}},L=Math.sin,N=Math.cos,T=Math.acos,P=Math.asin,B=Math.tan,D=Math.atan2,R=Math.PI/180,O=180/Math.PI,F=Math.sqrt,Y=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;t(this,e),this.m=[n,i,a,r,o,l],this.i=null,this.w=null,this.s=null}return i(e,[{key:"point",value:function(e,t){var n=this.m;return{x:n[0]*e+n[2]*t+n[4],y:n[1]*e+n[3]*t+n[5]}}},{key:"translateSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e&&!t)return this;var n=this.m;return n[4]+=n[0]*e+n[2]*t,n[5]+=n[1]*e+n[3]*t,this.w=this.s=this.i=null,this}},{key:"rotateSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e%=360){var t=L(e*=R),n=N(e),i=this.m,a=i[0],r=i[1];i[0]=a*n+i[2]*t,i[1]=r*n+i[3]*t,i[2]=i[2]*n-a*t,i[3]=i[3]*n-r*t,this.w=this.s=this.i=null}return this}},{key:"scaleSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(1!==e||1!==t){var n=this.m;n[0]*=e,n[1]*=e,n[2]*=t,n[3]*=t,this.w=this.s=this.i=null}return this}},{key:"skewSelf",value:function(e,t){if(t%=360,(e%=360)||t){var n=this.m,i=n[0],a=n[1],r=n[2],o=n[3];e&&(e=B(e*R),n[2]+=i*e,n[3]+=a*e),t&&(t=B(t*R),n[0]+=r*t,n[1]+=o*t),this.w=this.s=this.i=null}return this}},{key:"resetSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=this.m;return o[0]=e,o[1]=t,o[2]=n,o[3]=i,o[4]=a,o[5]=r,this.w=this.s=this.i=null,this}},{key:"recomposeSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return this.isIdentity||this.resetSelf(),e&&(e.x||e.y)&&this.translateSelf(e.x,e.y),t&&this.rotateSelf(t),n&&(n.x&&this.skewSelf(n.x,0),n.y&&this.skewSelf(0,n.y)),!i||1===i.x&&1===i.y||this.scaleSelf(i.x,i.y),a&&(a.x||a.y)&&this.translateSelf(a.x,a.y),this}},{key:"decompose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.m,i=n[0]*n[0]+n[1]*n[1],a=[[n[0],n[1]],[n[2],n[3]]],r=F(i);if(0===r)return{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:0,y:0},skew:{x:0,y:0},rotate:0};a[0][0]/=r,a[0][1]/=r;var o=n[0]*n[3]-n[1]*n[2]<0;o&&(r=-r);var l=a[0][0]*a[1][0]+a[0][1]*a[1][1];a[1][0]-=a[0][0]*l,a[1][1]-=a[0][1]*l;var s=F(a[1][0]*a[1][0]+a[1][1]*a[1][1]);if(0===s)return{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:r,y:0},skew:{x:0,y:0},rotate:0};a[1][0]/=s,a[1][1]/=s,l/=s;var c=0;return a[1][1]<0?(c=T(a[1][1])*O,a[0][1]<0&&(c=360-c)):c=P(a[0][1])*O,o&&(c=-c),l=D(l,F(a[0][0]*a[0][0]+a[0][1]*a[0][1]))*O,{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:r,y:s},skew:{x:l,y:0},rotate:c}}},{key:"toString",value:function(){return null===this.s&&(this.s="matrix("+this.m.map(W).join(" ")+")"),this.s}},{key:"determinant",get:function(){var e=this.m;return e[0]*e[3]-e[1]*e[2]}},{key:"isIdentity",get:function(){if(null===this.i){var e=this.m;this.i=1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]}return this.i}}]),e}(),z=/\.0+$/;function W(e){return Number.isInteger(e)?e:e.toFixed(14).replace(z,"")}function G(e,t,n){return e+(t-e)*n}function V(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a={x:G(e.x,t.x,n),y:G(e.y,t.y,n)};return i&&(a.a=J(e,t)),a}function J(e,t){return Math.atan2(t.y-e.y,t.x-e.x)}function U(e,t,n,i){var a=1-i;return a*a*e+2*a*i*t+i*i*n}function H(e,t,n,i){return 2*(1-i)*(t-e)+2*i*(n-t)}function q(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={x:U(e.x,t.x,n.x,i),y:U(e.y,t.y,n.y,i)};return a&&(r.a=$(e,t,n,i)),r}function $(e,t,n,i){return Math.atan2(H(e.y,t.y,n.y,i),H(e.x,t.x,n.x,i))}function Z(e,t,n,i,a){var r=a*a;return a*r*(i-e+3*(t-n))+3*r*(e+n-2*t)+3*a*(t-e)+e}function K(e,t,n,i,a){var r=1-a;return 3*(r*r*(t-e)+2*r*a*(n-t)+a*a*(i-n))}function Q(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o={x:Z(e.x,t.x,n.x,i.x,a),y:Z(e.y,t.y,n.y,i.y,a)};return r&&(o.a=X(e,t,n,i,a)),o}function X(e,t,n,i,a){return Math.atan2(K(e.y,t.y,n.y,i.y,a),K(e.x,t.x,n.x,i.x,a))}function ee(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ne(t)){if(ie(n))return q(t,n.start,n,e,i)}else if(ne(n)){if(t.end)return q(t,t.end,n,e,i)}else{if(t.end)return n.start?Q(t,t.end,n.start,n,e,i):q(t,t.end,n,e,i);if(n.start)return q(t,n.start,n,e,i)}return V(t,n,e,i)}function te(e,t,n){var i=ee(e,t,n,!0);return i.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e+Math.PI:e}(i.a)/d,i}function ne(e){return!e.type||"corner"===e.type}function ie(e){return null!=e.start&&!ne(e)}Object.freeze({M:2,L:2,Z:0,H:1,V:1,C:6,Q:4,T:2,S:4,A:7});var ae=new Y,re={f:function(e){return e?e.join(" "):""},i:function(t,n,i){if(0===t)return n;if(1===t)return i;var a=n.length;if(a!==i.length)return h(t,n,i);for(var r,o=new Array(a),l=0;l<a;l++){if((r=e(n[l]))!==e(i[l]))return h(t,n,i);if("number"===r)o[l]=p(t,n[l],i[l]);else{if(n[l]!==i[l])return h(t,n,i);o[l]=n[l]}}return o}},oe={f:null,i:w,u:function(e,t){return function(n){var i=t(n);e.setAttribute("x1",k(i[0])),e.setAttribute("y1",k(i[1])),e.setAttribute("x2",k(i[2])),e.setAttribute("y2",k(i[3]))}}},le={f:k,i:p},se={f:k,i:function(e,t,n){var i=p(e,t,n);return i<=0?0:i>=1?1:i}},ce={f:C,i:function(e,t,n){var i,a,r,o=t.length,l=n.length;if(o!==l)if(0===o)t=E(o=l,0);else if(0===l)l=o,n=E(o,0);else{var s=(r=(i=o)*(a=l)/function(e,t){for(var n;t;)n=t,t=e%t,e=n;return e||1}(i,a))<0?-r:r;t=x(t,Math.floor(s/o)),n=x(n,Math.floor(s/l)),o=l=s}for(var c=[],u=0;u<o;u++)c.push(m(g(e,t[u],n[u]),6));return c}};function ue(e,t,n,i,a,r,o,l){return t=function(e,t,n){for(var i,a,r,o=e.length-1,l={},s=0;s<=o;s++)(i=e[s]).e&&(i.e=t(i.e)),i.v&&"g"===(a=i.v).t&&a.r&&(r=n.getElementById(a.r))&&(l[a.r]=r.querySelectorAll("stop"));return l}(e,i,l),function(i){var a,r=n(i,e,me);return r?"c"===r.t?I(r.v):"g"===r.t?(t[r.r]&&function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].setAttribute("stop-color",I(t[n]))}(t[r.r],r.v),(a=r.r)?"url(#"+a+")":"none"):"none":"none"}}function me(e,t,n){if(0===e)return t;if(1===e)return n;if(t&&n){var i=t.t;if(i===n.t)switch(t.t){case"c":return{t:i,v:b(e,t.v,n.v)};case"g":if(t.r===n.r)return{t:i,v:_(e,t.v,n.v),r:t.r}}}return h(e,t,n)}var de={blur:y,brightness:g,contrast:g,"drop-shadow":function(e,t,n){return 0===e?t:1===e?n:{blur:y(e,t.blur,n.blur),offset:f(e,t.offset,n.offset),color:b(e,t.color,n.color)}},grayscale:g,"hue-rotate":p,invert:g,opacity:g,saturate:g,sepia:g};function he(e,t,n){if(0===e)return t;if(1===e)return n;var i=t.length;if(i!==n.length)return h(e,t,n);for(var a,r=[],o=0;o<i;o++){if(t[o].type!==n[o].type)return t;if(!(a=de[t[o].type]))return h(e,t,n);r.push({type:t.type,value:a(e,t[o].value,n[o].value)})}return r}var pe={blur:function(e){return e?function(t){e.setAttribute("stdDeviation",M(t))}:null},brightness:function(e,t,n){return(e=fe(n,t))?function(t){t=k(t),e.map((function(e){return e.setAttribute("slope",t)}))}:null},contrast:function(e,t,n){return(e=fe(n,t))?function(t){var n=k((1-t)/2);t=k(t),e.map((function(e){e.setAttribute("slope",t),e.setAttribute("intercept",n)}))}:null},"drop-shadow":function(e,t,n){var i=n.getElementById(t+"-blur");if(!i)return null;var a=n.getElementById(t+"-offset");if(!a)return null;var r=n.getElementById(t+"-flood");return r?function(e){i.setAttribute("stdDeviation",M(e.blur)),a.setAttribute("dx",k(e.offset.x)),a.setAttribute("dy",k(e.offset.y)),r.setAttribute("flood-color",I(e.color))}:null},grayscale:function(e){return e?function(t){e.setAttribute("values",C(function(e){return[.2126+.7874*(e=1-e),.7152-.7152*e,.0722-.0722*e,0,0,.2126-.2126*e,.7152+.2848*e,.0722-.0722*e,0,0,.2126-.2126*e,.7152-.7152*e,.0722+.9278*e,0,0,0,0,0,1,0]}(t)))}:null},"hue-rotate":function(e){return e?function(t){return e.setAttribute("values",k(t))}:null},invert:function(e,t,n){return(e=fe(n,t))?function(t){t=k(t)+" "+k(1-t),e.map((function(e){return e.setAttribute("tableValues",t)}))}:null},opacity:function(e,t,n){return(e=n.getElementById(t+"-A"))?function(t){return e.setAttribute("tableValues","0 "+k(t))}:null},saturate:function(e){return e?function(t){return e.setAttribute("values",k(t))}:null},sepia:function(e){return e?function(t){return e.setAttribute("values",C(function(e){return[.393+.607*(e=1-e),.769-.769*e,.189-.189*e,0,0,.349-.349*e,.686+.314*e,.168-.168*e,0,0,.272-.272*e,.534-.534*e,.131+.869*e,0,0,0,0,0,1,0]}(t)))}:null}},ge=["R","G","B"];function fe(e,t){var n=ge.map((function(n){return e.getElementById(t+"-"+n)||null}));return-1!==n.indexOf(null)?null:n}var ye={fill:ue,"fill-opacity":se,stroke:ue,"stroke-opacity":se,strokeWidth:le,strokeDashoffset:{f:k,i:p},strokeDasharray:ce,opacity:se,transform:function(t,n,i,a){if(!(t=function(t,n){if(!t||"object"!==e(t))return null;var i=!1;for(var a in t)t.hasOwnProperty(a)&&(t[a]&&t[a].length?(t[a].forEach((function(e){e.e&&(e.e=n(e.e))})),i=!0):delete t[a]);return i?t:null}(t,a)))return null;var r=function(e,a,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t[e]?i(a,t[e],r):n&&n[e]?n[e]:o};return n&&n.a&&t.o?function(e){var n=i(e,t.o,te);return ae.recomposeSelf(n,r("r",e,p,0)+n.a,r("k",e,f),r("s",e,f),r("t",e,f)).toString()}:function(e){return ae.recomposeSelf(r("o",e,ee,null),r("r",e,p,0),r("k",e,f),r("s",e,f),r("t",e,f)).toString()}},"#filter":function(e,t,n,i,a,r,o,l){if(!t.items||!e||!e.length)return null;var s=function(e,t){var n=(e=e.map((function(e){return e&&pe[e[0]]?(t.getElementById(e[1]),pe[e[0]](t.getElementById(e[1]),e[1],t)):null}))).length;return function(t){for(var i=0;i<n;i++)e[i]&&e[i](t[i].value)}}(t.items,l);return s?(e=function(e,t){return e.map((function(e){return e.e=t(e.e),e}))}(e,i),function(t){s(n(t,e,he))}):null},"#line":oe,points:{f:C,i:w},d:re,r:le,"#size":A,"#radius":S,_:function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)this[e[n]]=t;else this[e]=t}},ve=function(){function e(n){t(this,e),this.list=n,this.length=n.length}return i(e,[{key:"setAttribute",value:function(e,t){for(var n=this.list,i=0;i<this.length;i++)n[i].setAttribute(e,t)}},{key:"removeAttribute",value:function(e){for(var t=this.list,n=0;n<this.length;n++)t[n].removeAttribute(e)}},{key:"style",value:function(e,t){for(var n=this.list,i=0;i<this.length;i++)n[i].style[e]=t}}]),e}(),be=/-./g,_e=function(e,t){return t.toUpperCase()};function we(e){return"function"==typeof e?e:h}function Ee(e){return e?"function"==typeof e?e:Array.isArray(e)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(!Array.isArray(e))return t;switch(e.length){case 1:return u(e[0])||t;case 2:return u(e[0],e[1])||t;case 4:return l(e[0],e[1],e[2],e[3])||t}return t}(e,null):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;switch(e){case"linear":return r;case"steps":return u(t.steps||1,t.jump||0)||n;case"bezier":case"cubic-bezier":return l(t.x1||0,t.y1||0,t.x2||0,t.y2||0)||n}return n}(e.type,e.value,null):null}function xe(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.length-1;if(e<=t[0].t)return i?[0,0,t[0].v]:t[0].v;if(e>=t[a].t)return i?[a,1,t[a].v]:t[a].v;var r,o=t[0],l=null;for(r=1;r<=a;r++){if(!(e>t[r].t)){l=t[r];break}o=t[r]}return null==l?i?[a,1,t[a].v]:t[a].v:o.t===l.t?i?[r,1,l.v]:l.v:(e=(e-o.t)/(l.t-o.t),o.e&&(e=o.e(e)),i?[r,e,n(e,o.v,l.v)]:n(e,o.v,l.v))}function je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e&&e.length?"function"!=typeof t?null:("function"!=typeof n&&(n=null),function(i){var a=xe(i,e,t);return null!=a&&n&&(a=n(a)),a}):null}function ke(e,t){return e.t-t.t}function Ce(t,n,i,a){if(!a||"object"!==e(a))return null;var r=null,o=null;return Array.isArray(a)?o=function(e){if(!e||!e.length)return null;for(var t=0;t<e.length;t++)e[t].e&&(e[t].e=Ee(e[t].e));return e.sort(ke)}(a):(o=a.keys,r=a.data||null),o?function(t,n,i,a,r){var o,l="@"===i[0],s="#"===i[0],c=ye[i],u=h;switch(l?(o=i.substr(1),i=o.replace(be,_e)):s&&(i=i.substr(1)),e(c)){case"function":if(u=c(a,r,xe,Ee,i,l,n,t),s)return u;break;case"string":u=je(a,we(c));break;case"object":if((u=je(a,we(c.i),c.f))&&"function"==typeof c.u)return c.u(n,u,i,l,t)}return u?function(e,t,n){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3])return e instanceof ve?function(i){return e.style(t,n(i))}:function(i){return e.style[t]=n(i)};if(Array.isArray(t)){var i=t.length;return function(a){var r=n(a);if(null==r)for(var o=0;o<i;o++)e[o].removeAttribute(t);else for(var l=0;l<i;l++)e[l].setAttribute(t,r)}}return function(i){var a=n(i);null==a?e.removeAttribute(t):e.setAttribute(t,a)}}(n,i,u,l):null}(t,n,i,o,r):null}function Me(e,t,n){if(!n)return null;var i=[];for(var a in n)if(n.hasOwnProperty(a)){var r=Ce(e,t,a,n[a]);r&&i.push(r)}return i.length?i:null}var Ie=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,e),this._id=0,this._running=!1,this._animations=n,this.direction=i.direction||1,this.speed=i.speed||1,this.fps=i.fps||100,this.offset=i.offset||0}return i(e,[{key:"_start",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=-1/0,i=null,a={},r=function r(o){e._running=!0,null==i&&(i=o);var l=Math.round((o-i+t)*e.speed),s=e.fps?1e3/e.fps:0;if(l>n+s){e.offset=l,n=l;for(var c=e._animations,u=c.length,m=0,d=0;d<u;d++)a[d]?m++:(a[d]=c[d](l,e.direction),a[d]&&m++);if(m===u)return void e._stop()}e._id=window.requestAnimationFrame(r)};this._id=window.requestAnimationFrame(r)}},{key:"_stop",value:function(){this._id&&window.cancelAnimationFrame(this._id),this._running=!1}},{key:"play",value:function(){this._running||this._start(this.offset)}},{key:"stop",value:function(){this._stop(),this.offset=0;var e=this.direction,t=this._animations;requestAnimationFrame((function(){for(var n=0;n<t.length;n++)t[n](0,e)}))}},{key:"restart",value:function(){this._stop(),this.offset=0,this._start()}},{key:"pause",value:function(){this._stop()}},{key:"reverse",value:function(){this.direction=-this.direction}}],[{key:"build",value:function(t){if(!(t=function(e){if(!e||!e.root||!Array.isArray(e.animations))return null;var t=window.document.getElementById(e.root);if(!t)return null;var n=e.animations.map((function(e){return function(e,t){if(!t.duration||t.duration<0)return null;var n=function(e,t){if(!t)return null;var n=[];if(Array.isArray(t))for(var i=t.length,a=0;a<i;a++){var r=t[a];if(2===r.length){var o=null;if("string"==typeof r[0])o=e.getElementById(r[0]);else if(Array.isArray(r[0])){o=[];for(var l=0;l<r[0].length;l++)if("string"==typeof r[0][l]){var s=e.getElementById(r[0][l]);s&&o.push(s)}o=o.length?1===o.length?o[0]:new ve(o):null}if(o){var c=Me(e,o,r[1]);c&&(n=n.concat(c))}}}else for(var u in t)if(t.hasOwnProperty(u)){var m=e.getElementById(u);if(m){var d=Me(e,m,t[u]);d&&(n=n.concat(d))}}return n.length?n:null}(e,t.elements);return n?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=e.length,l=i>0?t:0;a&&n%2==0&&(l=t-l);var s=null;return function(c,u){var m=c%t,d=1+(c-m)/t;u*=i,a&&d%2==0&&(u=-u);var h=!1;if(d>n)m=l,h=!0,-1===r&&(m=i>0?0:t);else if(u<0&&(m=t-m),m===s)return!1;s=m;for(var p=0;p<o;p++)e[p](m);return h}}(n,t.duration,t.iterations||1/0,t.direction||1,!!t.alternate,t.fill||1):null}(t,e)})).filter((function(e){return!!e}));return n.length?{element:t,animations:n,options:e.options||void 0}:null}(t)))return null;var n=t.element,i=t.options||{},a=new e(t.animations,t.options);return function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("click"!==n){if("hover"===n)return t.addEventListener("mouseenter",(function(){return e.play()})),void t.addEventListener("mouseleave","freeze"===i?function(){return e.pause()}:function(){return e.stop()});e.play()}else{var a=function n(){t.removeEventListener("click",n),e.play()};t.addEventListener("click",a)}}(a,n,i.start,i.hover),a}}]),e}();return function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var n=Date.now(),i=Math.max(0,16-(n-e)),a=window.setTimeout((function(){t(n+i)}),i);return e=n+i,a},window.cancelAnimationFrame=window.clearTimeout)}(),Ie},"object"==typeof exports?e.exports=i():"function"==typeof define&&n.amdO?define(i):(t=t||self).__SVGATOR_PLAYER__=i(),__SVGATOR_PLAYER__.build({root:"e29gnwghxaec1",animations:[{duration:3e3,direction:1,iterations:0,fill:1,alternate:!1,elements:{e29gnwghxaec4:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:70,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:160,y:60.000000000000085,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:250.00000000000006,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:250.0000000000001,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:160.00000000000009,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:70.00000000000013,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:70.00000000000011,y:110.00000000000003,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec5:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:70,y:209.99999999999997,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:70,y:109.99999999999996,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:160,y:59.999999999999986,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:250.00000000000006,y:110,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:250,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:160.00000000000003,y:260,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:70.00000000000006,y:210,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec6:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:160,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:70.00000000000003,y:210.00000000000003,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:70.0000000033166,y:110.00000000017586,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:159.99999999559876,y:59.99999999808161,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:250.00000000133716,y:109.99999999826927,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:250.00000000074502,y:209.99999999748923,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:160.00000000328416,y:259.99999999938586,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec7:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:250.00000000000006,y:209.99999999827637,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:160.00000000000003,y:259.9999999982764,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:70.00000000000003,y:209.9999999982764,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:70.00000000000003,y:109.99999999827641,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:159.99999999999997,y:59.99999999827642,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:250,y:109.99999999827642,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:250.00000000000003,y:209.99999999827642,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec8:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:250.00000000000006,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:250.00000000000009,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:160.00000000000006,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:70.00000000000006,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:70.00000000000003,y:110.00000000000007,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:160.00000000000006,y:60.000000000000064,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:250,y:110.00000000000006,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec9:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:160,y:60,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:249.99999999999997,y:110,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:249.99999999999994,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:159.99999999999991,y:260,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:69.99999999999991,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:69.99999999999994,y:110.00000000000001,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:159.99999999999994,y:60.00000000000004,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}}}}],options:{start:"load",hover:"restart"}})}),[]),(0,i.createElement)("svg",{id:"e29gnwghxaec1",className:"imajinn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 300",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision"},(0,i.createElement)("defs",null,(0,i.createElement)("filter",{id:"e29gnwghxaec4-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec4-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec5-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec5-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec6-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec6-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec7-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec7-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec8-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec8-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec9-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec9-filter-blur-0",stdDeviation:"0,0",result:"result"}))),(0,i.createElement)("circle",{id:"e29gnwghxaec2",r:"50",transform:"matrix(-1 0 -0 -1 149.99999999999997 50.00000000379265)",fill:"none",stroke:"rgb(255,122,122)",strokeWidth:"6",strokeDashoffset:"314.160000",strokeDasharray:"314.160000"}),(0,i.createElement)("circle",{id:"e29gnwghxaec3",r:"50",transform:"matrix(-1 0 -0 -1 49.99999999999997 150.00000000379259)",fill:"none",stroke:"rgb(255,122,122)",strokeWidth:"6",strokeDashoffset:"314.160000",strokeDasharray:"314.160000"}),(0,i.createElement)("path",{id:"e29gnwghxaec4",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 52.00000000000004 110.00000000344897)",filter:"url(#e29gnwghxaec4-filter)",fill:"rgb(239,237,39)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec5",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 52.00000000000004 210.00000000344886)",filter:"url(#e29gnwghxaec5-filter)",fill:"rgb(236,0,140)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec6",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 142.00000000000003 260.00000000344897)",filter:"url(#e29gnwghxaec6-filter)",fill:"rgb(238,124,30)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec7",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 232.00000000000009 210.00000000172525)",filter:"url(#e29gnwghxaec7-filter)",fill:"rgb(0,161,103)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec8",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 232.00000000000009 110.00000000344897)",filter:"url(#e29gnwghxaec8-filter)",fill:"rgb(192,53,226)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec9",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 142.00000000000003 60.00000000344890)",filter:"url(#e29gnwghxaec9-filter)",fill:"rgb(38,169,224)",stroke:"none",strokeWidth:"6"}))}n(609),e=n.hmd(e)},609:function(e){e.exports=window.wp.components},307:function(e){e.exports=window.wp.element}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var r=t[i]={id:i,loaded:!1,exports:{}};return e[i](r,r.exports,n),r.loaded=!0,r.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");i.length&&(e=i[i.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),function(){var e=window.wp.blocks;function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}var i=n(307),a=window.wp.i18n,r=window.wp.blockEditor,o=n(609),l=window.wp.primitives,s=(0,i.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(l.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),c=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),u=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),m=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),d=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),h=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),p=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})),g=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"infinite-uploads/imajinn-ai","version":"0.1.0","title":"Imajinn AI","category":"media","icon":"art","description":"Generate the perfect images from a text prompt in seconds with cutting-edge AI. Creates stunning images for any topic with just your imagination.","keywords":["img","image","photo","picture","ai","art","infinite"],"supports":{"html":false,"multiple":false,"customClassName":false,"reusable":false,"lock":false},"example":{"attributes":{"mode":"preview"}},"textdomain":"imajinn-ai","editorScript":"file:./block.js","editorStyle":"file:./block.css"}'),f=n(684),y=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),v=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));function b(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.Button,{className:"prompt-tips",onClick:()=>r(!0),icon:y,label:(0,a.__)("Prompt Tips","imajinn-ai")}),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"800px"},icon:(0,i.createElement)(o.Icon,{icon:y}),title:(0,a.__)("Basics of Prompt Engineering","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)('"Prompt Engineering" is an important skill to create  better generations with this text to image AI. After reading this document and applying these simple steps, you’ll be able to generate better images with the same amount of effort.',"imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Note: Your prompt should be in English as the AI model was only trained with English labels, and will function poorly with other languages. If you speak another language you can use a online translation tool, which should provide excellent results as it does not have to be perfect.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("1. Raw prompt","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Raw prompt is the simplest way of describing what you want to generate, for instance;","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Panda"),(0,i.createElement)("li",null,"A warrior with a sword"),(0,i.createElement)("li",null,"Skeleton")),(0,i.createElement)("p",null,(0,a.__)("This is the basic building block of any prompt. Most new people start by only using raw prompts, this is usually a mistake as the images you generate like this tend to get random and chaotic. It's best to include as much detail as possible in your prompt describing exactly what you want to see in the scene.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("2. Style","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Style is a crucial part of the prompt. The AI, when missing a specified style, usually chooses the one it has seen the most in related images, for example, if you generated landscape, it would probably generate realistic or oil painting looking images. Having a well chosen style + raw prompt is sometimes enough, as the style influences the image the most right after the raw prompt.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The most commonly used styles include:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Realistic"),(0,i.createElement)("li",null,"Oil painting"),(0,i.createElement)("li",null,"Pencil drawing"),(0,i.createElement)("li",null,"Concept art")),(0,i.createElement)("p",null,(0,a.__)("In the case of a realistic image, there are various ways of making it the style, most resulting in similar images. Here are some commonly used techniques of making the image realistic:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"a photo of + raw prompt"),(0,i.createElement)("li",null,"a photograph of + raw prompt"),(0,i.createElement)("li",null,"raw prompt, hyperrealistic"),(0,i.createElement)("li",null,"raw prompt, realistic")),(0,i.createElement)("p",null,(0,a.__)("You can of course combine these to get more and more realistic images.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To get oil painting you can just simply add “an oil painting of” to your prompt. This sometimes results in the image showing an oil painting in a frame, to fix this you can just re-run the prompt or use raw prompt + “oil painting”","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To make a pencil drawing just simply add “a pencil drawing of” to your raw prompt or make your prompt raw prompt + “pencil drawing”.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The same applies to landscape art.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("3. Artist","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To make your style more specific, or the image more coherent, you can use artists’ names in your prompt. For instance, if you want a very abstract image, you can add “made by Pablo Picasso” or just simply, “Picasso”.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Below are lists of artists in different styles that you can use, but we encourage you to search for different artists as it is a cool way of discovering new art.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Portrait:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"John Singer Sargent"),(0,i.createElement)("li",null,"Edgar Degas"),(0,i.createElement)("li",null,"Paul Cézanne"),(0,i.createElement)("li",null,"Jan van Eyck")),(0,i.createElement)("p",null,(0,a.__)("Oil painting:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Leonardo DaVinci"),(0,i.createElement)("li",null,"Vincent Van Gogh"),(0,i.createElement)("li",null,"Johannes Vermeer"),(0,i.createElement)("li",null,"Rembrandt")),(0,i.createElement)("p",null,(0,a.__)("Pencil/Pen drawing:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Albrecht Dürer"),(0,i.createElement)("li",null,"Leonardo da Vinci"),(0,i.createElement)("li",null,"Michelangelo"),(0,i.createElement)("li",null,"Jean-Auguste-Dominique Ingres")),(0,i.createElement)("p",null,(0,a.__)("Landscape art:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Thomas Moran"),(0,i.createElement)("li",null,"Claude Monet"),(0,i.createElement)("li",null,"Alfred Bierstadt"),(0,i.createElement)("li",null,"Frederic Edwin Church")),(0,i.createElement)("p",null,(0,a.__)("Mixing the artists is highly encouraged, as it can lead to interesting-looking art.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("4. Finishing touches","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("This is the part that some people take to extremes, leading to longer prompts than this article. Finishing touches are the final things that you add to your prompt to make it look like you want. For instance, if you want to make your image more artistic, add “trending on artstation”. If you want to add more realistic lighting add “Unreal Engine.” You can add anything you want, but here are some examples:","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Highly detailed, surrealism, trending on art station, triadic color scheme, smooth, sharp focus, matte, elegant, the most beautiful image ever seen, illustration, digital paint, dark, gloomy, octane render, 8k, 4k, washed colors, sharp, dramatic lighting, beautiful, post processing, picture of the day, ambient lighting, epic composition, bokeh, etc.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("5. Conclusion","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Prompt engineering allows you to have better control of what the image will look like. It (if done right) improves the image quality by a lot in every aspect.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Some fun example prompts to get you started:","imajinn-ai")),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,"A cat walks through a cyberpunk street, rain, poster, artstation, neon, futuristic, stunning, highly detailed, digital painting"),(0,i.createElement)("li",null,"a portrait of a family of dwarfs in middle earth, by Albert Bierstadt, 8K"),(0,i.createElement)("li",null,"a ",(0,i.createElement)("em",null,"[beach|jungle|scene of your choice]"),", highly detailed oil painting, unreal 5 render, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, digital art, octane render, beautiful composition, award-winning photograph, masterpiece"),(0,i.createElement)("li",null,"a close up view of a man looking like Elon Musk. rockets launching in the background, highly detailed oil painting, render, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, digital art, octane render, beautiful composition, trending on artstation, award-winning photograph, masterpiece,8k, high quality sharp anime classic anime from 2010 in style of Hayao Miyazaki"),(0,i.createElement)("li",null,"a headless astronaut in space suit, holding space helmet in hands, extremely detailed oil painting, unreal 5 render, rhads, Bruce Pennington, tim hildebrandt, digital art, octane render, beautiful composition, trending on artstation, award-winning photograph, masterpiece")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}function _(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.ToolbarButton,{onClick:()=>r(!0),icon:v,label:(0,a.__)("Help","imajinn-ai")}),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"900px"},icon:(0,i.createElement)(o.Icon,{icon:v}),title:(0,a.__)("Usage Instructions","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)("Imajinn AI is a powerful tool that uses the latest technology in AI to generate images from text. It is a great tool for writers, artists, and anyone who needs to visualize their ideas.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The Imajinn AI interface is a block that you can add to your post or page. You can add it by clicking on the plus button in the top left corner of the editor and selecting Imajinn AI. You can also add it by clicking on the Imajinn AI icon in the block inserter. It does not output any content on your site on its own, but allows you to generate and insert images into the same location in the block editor. When finished you can just close the block.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Connecting","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Infinite Uploads/Imajinn AI email and password.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Prompts","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To generate images, you need to write a prompt. A prompt is a text that describes what you want the image to look like. The prompt should be in English as the AI model was only trained with English labels, and will function poorly with other languages. The prompt can be as short as a a few words, or as long as a paragraph. The longer the prompt, the more detailed the image will be. Please see our prompt engineering guide for more information on how to write a good prompt.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Prefilled Styles","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To give you inspiration and make it easier to generate images in specific styles, we have added some dropdowns with prefilled styles that you can optionally select from. When optionally choosing options here it will append specific keywords to your prompt to achieve that style when sent to our servers.","imajinn-ai")),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Image Style","imajinn-ai")),"-",(0,a.__)("Choose from many common photographic or artistic styles and mediums.","imajinn-ai")),(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Artist Style","imajinn-ai")),"-",(0,a.__)("Choose to generate your images based on the styles of some famous artists.","imajinn-ai")),(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Modifier","imajinn-ai")),"-",(0,a.__)("Some fun and common styles to give the image output that special uniqueness.","imajinn-ai"))),(0,i.createElement)("h3",null,(0,a.__)("Image Ratio","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("You can control the output ratio of the generated images. Square images are the default, while rectangular images have more pixels and take much longer to process.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The AI model was trained on square images, so depending on the prompt rectangular images may produce strange results such as duplication of the main subject. For example a rectangular image of a person may produce two of the same person, or multiple mouths on the same face. So it may require more prompt editing and generation attempts to get the desired result. Rectangular images are best used for landscapes, scenes, and other objects that do not have a singular main subject.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Saving Images","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Imajinn AI allows you to save images to your media library, and optionally insert them into your post/page. You can save images by clicking on the save button in the bottom left corner of each image generation. You can insert images into the editor in the same location as the Imajinn block by clicking on the insert button in the bottom right corner. Inserting an image also saves it to your media library, so you don't need to choose both.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Credits","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("When you first signup for Imajinn AI, you get a chunk of free credits. You can use these credits to generate images and get a feel for how the plugin functions and learn how to write effective prompts. If you run out, you can purchase more credits from the Imajinn AI website via our plans.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Each prompt generation uses one credit, and creates four images that you can choose to save and/or insert into your content. There is no limit to the number of images you can save.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Filters and Restrictions","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To ensure that the images generated are appropriate for all audiences, we have a set of filters and restrictions that are applied to prompts and the image outputs. We block the use of specific words and phrases in prompts, and we scan all generations with an AI moderation filter to block images that appear to contain nudity, or other inappropriate content.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Depending on your prompt construction, it can be a fairly common occurrence for it to detect a potentially inappropriate image. If this happens, you will see a warning message. You can either change your prompt, or try generating again. We currently don't charge credits for images that are blocked by the filter, but may need to change this policy in the future. We monitor prompt violations and if we find that you are purposely using inappropriate prompts and attempting to bypass our restrictions, we may disable your account.","imajinn-ai")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}function w(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.Button,{onClick:()=>r(!0)},e.buttonLabel||(0,a.__)("License / Restrictions","imajinn-ai")),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"800px"},icon:(0,i.createElement)(o.Icon,{icon:(0,i.createElement)(o.Icon,{icon:y})}),title:(0,a.__)("License / Usage Restrictions","imajinn-ai")}),(0,i.createElement)("p",null,"CreativeML Open RAIL-M dated August 22, 2022"),(0,i.createElement)("p",null,"Section I: PREAMBLE"),(0,i.createElement)("p",null,"Multimodal generative models are being widely adopted and used, and have the potential to transform the way artists, among other individuals, conceive and benefit from AI or ML technologies as a tool for content creation."),(0,i.createElement)("p",null,"Notwithstanding the current and potential benefits that these artifacts can bring to society at large, there are also concerns about potential misuses of them, either due to their technical limitations or ethical considerations."),(0,i.createElement)("p",null,"In short, this license strives for both the open and responsible downstream use of the accompanying model. When it comes to the open character, we took inspiration from open source permissive licenses regarding the grant of IP rights. Referring to the downstream responsible use, we added use-based restrictions not permitting the use of the Model in very specific scenarios, in order for the licensor to be able to enforce the license in case potential misuses of the Model may occur. At the same time, we strive to promote open and responsible research on generative models for art and content generation."),(0,i.createElement)("p",null,"Even though downstream derivative versions of the model could be released under different licensing terms, the latter will always have to include - at minimum - the same use-based restrictions as the ones in the original license (this license). We believe in the intersection between open and responsible AI development; thus, this License aims to strike a balance between both in order to enable responsible open-science in the field of AI."),(0,i.createElement)("p",null,"This License governs the use of the model (and its derivatives) and is informed by the model card associated with the model."),(0,i.createElement)("p",null,"NOW THEREFORE, You and Licensor agree as follows:"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,(0,i.createElement)("p",null,"Definitions")),(0,i.createElement)("li",null,(0,i.createElement)("p",null,'"License" means the terms and conditions for use, reproduction, and Distribution as defined in this document.')),(0,i.createElement)("li",null,'"Data" means a collection of information and/or content extracted from the dataset used with the Model, including to train, pretrain, or otherwise evaluate the Model. The Data is not licensed under this License.'),(0,i.createElement)("li",null,'"Output" means the results of operating a Model as embodied in informational content resulting therefrom.'),(0,i.createElement)("li",null,'"Model" means any accompanying machine-learning based assemblies (including checkpoints), consisting of learnt weights, parameters (including optimizer states), corresponding to the model architecture as embodied in the Complementary Material, that have been trained or tuned, in whole or in part on the Data, using the Complementary Material.'),(0,i.createElement)("li",null,'"Derivatives of the Model" means all modifications to the Model, works based on the Model, or any other model which is created or initialized by transfer of patterns of the weights, parameters, activations or output of the Model, to the other model, in order to cause the other model to perform similarly to the Model, including - but not limited to - distillation methods entailing the use of intermediate data representations or methods based on the generation of synthetic data by the Model for training the other model.'),(0,i.createElement)("li",null,'"Complementary Material" means the accompanying source code and scripts used to define, run, load, benchmark or evaluate the Model, and used to prepare data for training or evaluation, if any. This includes any accompanying documentation, tutorials, examples, etc, if any.'),(0,i.createElement)("li",null,'"Distribution" means any transmission, reproduction, publication or other sharing of the Model or Derivatives of the Model to a third party, including providing the Model as a hosted service made available by electronic or other remote means - e.g. API-based or web access.'),(0,i.createElement)("li",null,'"Licensor" means the copyright owner or entity authorized by the copyright owner that is granting the License, including the persons or entities that may have rights in the Model and/or distributing the Model.'),(0,i.createElement)("li",null,'"You" (or "Your") means an individual or Legal Entity exercising permissions granted by this License and/or making use of the Model for whichever purpose and in any field of use, including usage of the Model in an end-use application - e.g. chatbot, translator, image generator.'),(0,i.createElement)("li",null,'"Third Parties" means individuals or legal entities that are not under common control with Licensor or You.'),(0,i.createElement)("li",null,'"Contribution" means any work of authorship, including the original version of the Model and any modifications or additions to that Model or Derivatives of the Model thereof, that is intentionally submitted to Licensor for inclusion in the Model by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Model, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."'),(0,i.createElement)("li",null,'"Contributor" means Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Model.')),(0,i.createElement)("p",null,"Section II: INTELLECTUAL PROPERTY RIGHTS"),(0,i.createElement)("p",null,"Both copyright and patent grants apply to the Model, Derivatives of the Model and Complementary Material. The Model and Derivatives of the Model are subject to additional terms as described in Section III."),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare, publicly display, publicly perform, sublicense, and distribute the Complementary Material, the Model, and Derivatives of the Model."),(0,i.createElement)("li",null,"Grant of Patent License. Subject to the terms and conditions of this License and where and as applicable, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this paragraph) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Model and the Complementary Material, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Model to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Model and/or Complementary Material or a Contribution incorporated within the Model and/or Complementary Material constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for the Model and/or Work shall terminate as of the date such litigation is asserted or filed.")),(0,i.createElement)("p",null,"Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Distribution and Redistribution. You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications, provided that You meet the following conditions: Use-based restrictions as referenced in paragraph 5 MUST be included as an enforceable provision by You in any type of legal agreement (e.g. a license) governing the use and/or distribution of the Model or Derivatives of the Model, and You shall give notice to subsequent users You Distribute to, that the Model or Derivatives of the Model are subject to paragraph 5. This provision does not apply to the use of Complementary Material. You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License; You must cause any modified files to carry prominent notices stating that You changed the files; You must retain all copyright, patent, trademark, and attribution notices excluding those notices that do not pertain to any part of the Model, Derivatives of the Model. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions - respecting paragraph 4.a. - for use, reproduction, or Distribution of Your modifications, or for any such Derivatives of the Model as a whole, provided Your use, reproduction, and Distribution of the Model otherwise complies with the conditions stated in this License."),(0,i.createElement)("li",null,"Use-based restrictions. The restrictions set forth in Attachment A are considered Use-based restrictions. Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses. You may use the Model subject to this License, including only for lawful purposes and in accordance with the License. Use may include creating any content with, finetuning, updating, running, training, evaluating and/or reparametrizing the Model. You shall require all of Your users who use the Model or a Derivative of the Model to comply with the terms of this paragraph (paragraph 5)."),(0,i.createElement)("li",null,"The Output You Generate. Except as set forth herein, Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses. No use of the output can contravene any provision as stated in the License.")),(0,i.createElement)("p",null,"Section IV: OTHER PROVISIONS"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Updates and Runtime Restrictions. To the maximum extent permitted by law, Licensor reserves the right to restrict (remotely or otherwise) usage of the Model in violation of this License, update the Model through electronic means, or modify the Output of the Model based on updates. You shall undertake reasonable efforts to use the latest version of the Model."),(0,i.createElement)("li",null,"Trademarks and related. Nothing in this License permits You to make use of Licensors’ trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between the parties; and any rights not expressly granted herein are reserved by the Licensors."),(0,i.createElement)("li",null,'Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Model and the Complementary Material (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Model, Derivatives of the Model, and the Complementary Material and assume any risks associated with Your exercise of permissions under this License.'),(0,i.createElement)("li",null,"Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Model and the Complementary Material (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages."),(0,i.createElement)("li",null,"Accepting Warranty or Additional Liability. While redistributing the Model, Derivatives of the Model and the Complementary Material thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability."),(0,i.createElement)("li",null,"If any provision of this License is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.")),(0,i.createElement)("p",null,"END OF TERMS AND CONDITIONS"),(0,i.createElement)("p",null,"Attachment A"),(0,i.createElement)("p",null,"Use Restrictions"),(0,i.createElement)("p",null,"You agree not to use the Model or Derivatives of the Model:"),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,"In any way that violates any applicable national, federal, state, local or international law or regulation;"),(0,i.createElement)("li",null,"For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;"),(0,i.createElement)("li",null,"To generate or disseminate verifiably false information and/or content with the purpose of harming others;"),(0,i.createElement)("li",null,"To generate or disseminate personal identifiable information that can be used to harm an individual;"),(0,i.createElement)("li",null,"To defame, disparage or otherwise harass others;"),(0,i.createElement)("li",null,"For fully automated decision making that adversely impacts an individual’s legal rights or otherwise creates or modifies a binding, enforceable obligation;"),(0,i.createElement)("li",null,"For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;"),(0,i.createElement)("li",null,"To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;"),(0,i.createElement)("li",null,"For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories;"),(0,i.createElement)("li",null,"To provide medical advice and medical results interpretation;"),(0,i.createElement)("li",null,"To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}var E=n.p+"images/imajinn-demo.6ce7fccc.jpg";function x(e){const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(null),[s,c]=(0,i.useState)(null),[u,m]=(0,i.useState)(IMAJINN.email),[d,h]=(0,i.useState)(""),[p,g]=(0,i.useState)(!1),[f,y]=(0,i.useState)(!1);if(e.isConnected)return null;const v=e=>e.target.select();return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("img",{src:E,alt:(0,a.__)("Example images generated by Imajinn AI","imajinn-ai"),style:{width:"100%"}}),(0,i.createElement)("p",null,(0,a.__)("We hope you are excited to turn your imagination into creative media for your WordPress site. To get started please create a free account or login with your existing Infinite Uploads/Imajinn credentials and we'll connect your site to our cloud.","imajinn-ai")),(0,i.createElement)((()=>r?(0,i.createElement)(o.Notice,{status:"warning"},(0,i.createElement)(o.__experimentalText,null,r,"incorrect_password"===s&&(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/wp-login.php?action=lostpassword",target:"_blank"},(0,a.__)("Reset Password","imajinn-ai")))):null),null),(0,i.createElement)(o.__experimentalHeading,{as:"label"},(0,a.__)("Register / Login","imajinn-ai")),(0,i.createElement)(o.Flex,{align:"bottom",wrap:"true",className:"connect-wrapper"},(0,i.createElement)(o.FlexItem,null,(0,i.createElement)(o.TextControl,{label:(0,a.__)("Email","imajinn-ai"),type:"email",value:u,onFocus:v,onChange:e=>m(e),help:(0,a.__)("You'll need a valid email to enable your credits.","imajinn-ai")}),(0,i.createElement)(o.TextControl,{label:(0,a.__)("Password","imajinn-ai"),type:"password",autoComplete:"off",value:d,onFocus:v,onChange:e=>h(e)})),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)(o.CheckboxControl,{label:(0,a.__)("I agree to the Terms of Service and Usage Restrictions:","imajinn-ai"),checked:f,value:"1",onChange:e=>y(e)}),(0,i.createElement)("div",{className:"license-links"},(0,i.createElement)(w,{buttonLabel:(0,a.__)("Usage Restrictions","imajinn-ai")}),(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/terms-of-service/",target:"_blank"},(0,a.__)("Terms of Service","imajinn-ai")),(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/privacy/",target:"_blank"},(0,a.__)("Privacy Policy","imajinn-ai"))),(0,i.createElement)(o.CheckboxControl,{label:(0,a.__)("Notify me about usage tips & new features (unsubscribe anytime)","imajinn-ai"),checked:p,value:"1",onChange:e=>g(e)})),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((()=>t?(0,i.createElement)(o.Button,{className:"connect-button",disabled:!0},(0,i.createElement)(o.Spinner,null)):(0,i.createElement)(o.Button,{className:"connect-button",variant:"primary",disabled:t,onClick:()=>{n(!0),l(null),fetch(`${ajaxurl}?action=imajinn-connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u,password:d,signup_tos:f,signup_newsletter:p,nonce:IMAJINN.nonce})}).then((e=>e.json())).then((t=>{console.log(t),t.success?(e.setIsConnected(!0),IMAJINN.connected=!0,e.setCredits(t.data.remaining_credits)):(n(!1),c(t.data[0].code),l(t.data[0].message))})).catch((e=>{n(!1),l(e)}))}},(0,a.__)("Connect","imajinn-ai"))),null))))}var j={styles:[{id:"photography, photorealistic, DSLR, canon50",name:(0,a.__)("Photography","imajinn-ai"),children:[{id:"photography, photo realistic, DSLR, canon50",name:(0,a.__)("Realistic","imajinn-ai")},{id:"Portrait photograph, bokeh, dof, canon50",name:(0,a.__)("Portrait","imajinn-ai")},{id:"polaroid photograph",name:(0,a.__)("Polaroid","imajinn-ai")},{id:"war photography, WWI photograph, WWII photograph",name:(0,a.__)("War","imajinn-ai")},{id:"Wildlife Photography, national geographic photo, zoom",name:(0,a.__)("Wildlife","imajinn-ai")},{id:"Photojournalism, award winning",name:(0,a.__)("Photojournalism","imajinn-ai")},{id:"macro photograph",name:(0,a.__)("Macro","imajinn-ai")},{id:"long exposure, photograph, realistic",name:(0,a.__)("Long Exposure","imajinn-ai")},{id:"fish eye lense, wide-angle",name:(0,a.__)("Fish Eye","imajinn-ai")}]},{id:"painting, digital art, trending on artstation",name:(0,a.__)("Painting","imajinn-ai"),children:[{id:"digital art, trending on artstation, hd",name:(0,a.__)("Digital Art","imajinn-ai")},{id:"oil painting, award winning",name:(0,a.__)("Oil Painting","imajinn-ai")},{id:"watercolor painting",name:(0,a.__)("Watercolor","imajinn-ai")},{id:"acrylic painting, award winning art, trending",name:(0,a.__)("Acrylic","imajinn-ai")},{id:"airbrush art",name:(0,a.__)("Airbrushed","imajinn-ai")},{id:"comic, comic book",name:(0,a.__)("Comic Book","imajinn-ai")},{id:"schematic blueprint",name:(0,a.__)("Blueprint","imajinn-ai")},{id:"made up of ink dots, artistic drawing, trending on artstation",name:(0,a.__)("Ink Dot","imajinn-ai")}]},{id:"artistic drawing, trending on artstation",name:(0,a.__)("Drawing","imajinn-ai"),children:[{id:"illustration, trending on artstation",name:(0,a.__)("Illustration","imajinn-ai")},{id:"cyberpunk, trending on artstation",name:(0,a.__)("Cyberpunk","imajinn-ai")},{id:"pencil sketch, drawing, trending on artstation",name:(0,a.__)("Pencil","imajinn-ai")},{id:"drawn in blue biro pen, artistic drawing, trending on artstation",name:(0,a.__)("Pen","imajinn-ai")},{id:"Ink dripping drawing, trending on artstation",name:(0,a.__)("Ink","imajinn-ai")},{id:"caligraphy",name:(0,a.__)("Caligraphy","imajinn-ai")},{id:"charcoal shaded, artistic drawing, trending on artstation",name:(0,a.__)("Charcoal","imajinn-ai")},{id:"cartoon",name:(0,a.__)("Cartoon","imajinn-ai")},{id:"comic, comic book",name:(0,a.__)("Comic Book","imajinn-ai")},{id:"schematic blueprint",name:(0,a.__)("Blueprint","imajinn-ai")},{id:"technical sketch",name:(0,a.__)("Technical Sketch","imajinn-ai")},{id:"made up of ink dots, artistic drawing, trending on artstation",name:(0,a.__)("Ink Dot","imajinn-ai")},{id:"line art",name:(0,a.__)("Line Art","imajinn-ai")},{id:"crayon drawing",name:(0,a.__)("Crayon","imajinn-ai")},{id:"pastel drawing, artistic",name:(0,a.__)("Pastel","imajinn-ai")},{id:"chalkboard drawing",name:(0,a.__)("Chalkboard","imajinn-ai")}]},{id:"animation",name:(0,a.__)("Animation","imajinn-ai"),children:[{id:"vintage disney animation",name:(0,a.__)("Vintage Disney","imajinn-ai")},{id:"Rendered by octane, disney animation studios",name:(0,a.__)("Disney Animation","imajinn-ai")},{id:"simpsons style animation",name:(0,a.__)("Simpsons","imajinn-ai")},{id:"anime style, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, trending on artstation",name:(0,a.__)("Anime","imajinn-ai")},{id:"pixar 3D animation",name:(0,a.__)("Pixar","imajinn-ai")}]},{id:"unreal engine, 3d render, Rendered by octane",name:(0,a.__)("Screen","imajinn-ai"),children:[{id:"Unreal Engine, Cinema 4D",name:(0,a.__)("Video Game HD","imajinn-ai")},{id:"animal crossing, mario, nintendo, pokemon",name:(0,a.__)("Nintendo","imajinn-ai")},{id:"3D render, composite",name:(0,a.__)("3D Render","imajinn-ai")},{id:"8bit graphics",name:(0,a.__)("8bit","imajinn-ai")},{id:"emoji",name:(0,a.__)("Emoji","imajinn-ai")},{id:"low poly ps1 graphics",name:(0,a.__)("Low Poly","imajinn-ai")},{id:"pixel art",name:(0,a.__)("Pixel Art","imajinn-ai")},{id:"ASCII art",name:(0,a.__)("ASCII","imajinn-ai")}]},{id:"realistic",name:(0,a.__)("Real Life Materials","imajinn-ai"),children:[{children:[{id:"marble statue",name:(0,a.__)("Marble","imajinn-ai")},{id:"stone statue",name:(0,a.__)("stone","imajinn-ai")},{id:"statue carved from wax",name:(0,a.__)("Wax","imajinn-ai")}],id:"statue",name:(0,a.__)("Statue","imajinn-ai")},{id:"origami paper folding",name:(0,a.__)("Origami","imajinn-ai")},{id:"paper mache art",name:(0,a.__)("Paper Mache","imajinn-ai")},{id:"paper cutout art",name:(0,a.__)("Paper Cutout","imajinn-ai")},{id:"graffiti street art",name:(0,a.__)("Graffiti","imajinn-ai")},{id:"halftone print",name:(0,a.__)("Halftone","imajinn-ai")},{id:"cross stitch art",name:(0,a.__)("Cross Stitch","imajinn-ai")},{id:"stained glass",name:(0,a.__)("Stained Glass","imajinn-ai")},{id:"made of crystals",name:(0,a.__)("Crystal","imajinn-ai")},{id:"made of flowers",name:(0,a.__)("Flowery","imajinn-ai")}]}],artists:[{value:"",label:(0,a.__)("No Artist","imajinn-ai")},{value:"by Albert Bierstadt",label:(0,a.__)("Albert Bierstadt","imajinn-ai")},{value:"by Andy Warhol",label:(0,a.__)("Andy Warhol","imajinn-ai")},{value:"by Asaf Hanuka",label:(0,a.__)("Asaf Hanuka","imajinn-ai")},{value:"by Aubrey Beardsley",label:(0,a.__)("Aubrey Beardsley","imajinn-ai")},{value:"by Claude Monet",label:(0,a.__)("Claude Monet","imajinn-ai")},{value:"by Diego Rivera",label:(0,a.__)("Diego Rivera","imajinn-ai")},{value:"by Frida Kahlo",label:(0,a.__)("Frida Kahlo","imajinn-ai")},{value:"by Greg Rutkowski",label:(0,a.__)("Greg Rutkowski","imajinn-ai")},{value:"by Hayao Miyazaki",label:(0,a.__)("Hayao Miyazaki","imajinn-ai")},{value:"by Hieronymus Bosch",label:(0,a.__)("Hieronymus Bosch","imajinn-ai")},{value:"by Jackson Pollock",label:(0,a.__)("Jackson Pollock","imajinn-ai")},{value:"by Leonardo da Vinci",label:(0,a.__)("Leonardo da Vinci","imajinn-ai")},{value:"by Michelangelo",label:(0,a.__)("Michelangelo","imajinn-ai")},{value:"by Pablo Picasso",label:(0,a.__)("Pablo Picasso","imajinn-ai")},{value:"by Salvador Dali",label:(0,a.__)("Salvador Dali","imajinn-ai")},{value:"by artgerm, art germ",label:(0,a.__)("Stanley Artgerm","imajinn-ai")},{value:"by Vincent van Gogh",label:(0,a.__)("Vincent van Gogh","imajinn-ai")}],modifiers:[{value:"",label:(0,a.__)("No Modifier","imajinn-ai")},{value:"in the style of steampunk",label:(0,a.__)("Steampunk","imajinn-ai")},{value:"synthwave",label:(0,a.__)("Synthwave","imajinn-ai")},{value:"in the style of cyberpunk",label:(0,a.__)("Cyberpunk","imajinn-ai")},{value:"insanely detailed and intricate, hypermaximalist, elegant, ornate, hyper realistic, super detailed",label:(0,a.__)("Detailed & Intricate","imajinn-ai")},{value:"n a symbolic and meaningful style, insanely detailed and intricate, hypermaximalist, elegant, ornate, hyper realistic, super detailed",label:(0,a.__)("Symbolic & Meaningful","imajinn-ai")},{value:"Cinematic Lighting",label:(0,a.__)("Cinematic Lighting","imajinn-ai")},{value:"Contre-Jour",label:(0,a.__)("Contre-Jour","imajinn-ai")},{value:"futuristic",label:(0,a.__)("Futuristic","imajinn-ai")},{value:"black and white",label:(0,a.__)("Black & White","imajinn-ai")},{value:"technicolor",label:(0,a.__)("Technicolor","imajinn-ai")},{value:"warm color palette",label:(0,a.__)("Warm","imajinn-ai")},{value:"neon",label:(0,a.__)("Neon","imajinn-ai")},{value:"colorful",label:(0,a.__)("Colorful","imajinn-ai")}]};(0,e.registerBlockType)(g,{edit:function(){const[e,n]=(0,i.useState)(IMAJINN.connected),[l,y]=(0,i.useState)(!1),[v,E]=(0,i.useState)(null),[k,C]=(0,i.useState)(null),[M,I]=(0,i.useState)([]),[S,A]=(0,i.useState)(IMAJINN.history),[L,N]=(0,i.useState)(null),[T,P]=(0,i.useState)(0),[B,D]=(0,i.useState)(""),[R,O]=(0,i.useState)(""),[F,Y]=(0,i.useState)("1:1"),[z,W]=(0,i.useState)(F),[G,V]=(0,i.useState)(IMAJINN.remaining_credits),[J,U]=(0,i.useState)(!1),[H,q]=(0,i.useState)(""),[$,Z]=(0,i.useState)(""),[K,Q]=(0,i.useState)(""),[X,ee]=(0,i.useState)([]);(0,i.useEffect)((()=>{IMAJINN.remaining_credits=G,G>0&&U(!1)}),[G]),(0,i.useEffect)((()=>{IMAJINN.history=S}),[S]),(0,i.useEffect)((()=>{O([B,H,$,K].filter(Boolean).join(", "))}),[B,H,$,K]);const te=(0,r.useBlockProps)(),ne=()=>{if(G<=0&&ae(),G-1<=0)return U(!0),!1;C(null),I([]),ee([]),W(F),y(!0),E(null),P(0),fetch(`${ajaxurl}?action=imajinn-start-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:R,ratio:F,num_variations:4,nonce:IMAJINN.nonce})}).then((e=>e.json())).then((e=>{e.success?(C(e.data.job_id),N(e.data.status),V(e.data.remaining_credits),P(e.data.progress),ie(e.data.job_id)):(y(!1),C(null),N(null),E(e.data[0].message))})).catch((e=>{y(!1),C(null),N(null),E(e)}))},ie=async e=>{if(!e)return y(!1),C(null),!1;setTimeout((async()=>{const t=await fetch(`${ajaxurl}?action=imajinn-check-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({job_id:e,nonce:IMAJINN.nonce})}),n=await t.json();n.success?(N(n.data.status),P(n.data.progress),V(n.data.remaining_credits),"succeeded"===n.data.status?(I(n.data.generations),A((e=>[{prompt:R,ratio:F,generations:n.data.generations},...e]))):"failed"===n.data.status&&(E(n.data.error),N(null),y(!1),C(null)),"starting"===n.data.status||"processing"===n.data.status?ie(e):(N(null),y(!1),C(null))):(N(null),y(!1),C(null),E(n.data[0].message))}),4e3)},ae=async()=>{const e=await fetch(`${ajaxurl}?action=imajinn-refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nonce:IMAJINN.nonce})}),t=await e.json();t.success?V(t.data.remaining_credits):E(t.data[0].message)},re=async e=>{let t=M[e].jpg;const n=await fetch(`${ajaxurl}?action=imajinn-save-image`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t,prompt:R,post_id:wp.data.select("core/editor").getCurrentPostId(),nonce:IMAJINN.nonce})}),i=await n.json();return!!i.success&&(ee((t=>[...t,{index:e,data:i.data}])),wp.data.dispatch("core/notices").createNotice("success",(0,a.__)("Image saved to media library.","imajinn-ai"),{type:"snackbar",isDismissible:!0,actions:[]}),i.data)},oe=e=>{const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{X.some((t=>t.index===e.genindex))?(l(!0),n(!1)):(l(!1),n(!1))}),[X]),r?(0,i.createElement)(o.Button,{disabled:!0,icon:u},(0,a.__)("Saved","imajinn-ai")):t?(0,i.createElement)(o.Button,{disabled:!0},(0,i.createElement)(o.Spinner,null)," ",(0,a.__)("Saving","imajinn-ai")):(0,i.createElement)(o.Button,{variant:IMAJINN.custom_editor?"primary":"secondary",disabled:t,icon:m,onClick:async()=>{n(!0),await re(e.genindex)||n(!1)}},(0,a.__)("Save","imajinn-ai"))},le=e=>{const[t,n]=(0,i.useState)(!1);return t?(0,i.createElement)(o.Button,{disabled:!0},(0,i.createElement)(o.Spinner,null)):(0,i.createElement)(o.Button,{variant:"primary",className:"imajinn-image-insert",disabled:t,icon:d,onClick:async()=>{n(!0),await(async e=>{let t=!1;if(t=X.some((t=>t.index===e))?X.find((t=>t.index===e)).data:await re(e),t){const e=wp.data.select("core/block-editor").getBlocks().map((function(e){return"imajinn-ai/text2image"==e.name})).indexOf(!0),n=wp.blocks.createBlock("core/image",{id:t.attachment_id,url:t.url,width:t.width,height:t.height,sizeSlug:t.size,alt:R,title:R});return wp.data.dispatch("core/block-editor").insertBlocks(n,e),!0}return!1})(e.genindex)||n(!1)}},(0,a.__)("Insert","imajinn-ai"))},se=e=>{let{...t}=e;return IMAJINN.custom_editor?(0,i.createElement)(o.CardFooter,null,(0,i.createElement)(o.Button,{href:`${ajaxurl}?action=imajinn-tweet&image=${t.src}`,target:"_blank",icon:(0,i.createElement)(o.Dashicon,{icon:"twitter"}),label:(0,a.__)("Share on Twitter","imajinn-ai")}),(0,i.createElement)(oe,t)):(0,i.createElement)(o.CardFooter,null,(0,i.createElement)(oe,t),(0,i.createElement)(o.Button,{href:`${ajaxurl}?action=imajinn-tweet&image=${t.src}`,target:"_blank",icon:(0,i.createElement)(o.Dashicon,{icon:"twitter"}),label:(0,a.__)("Share on Twitter","imajinn-ai")}),(0,i.createElement)(le,t))},ce=e=>{let{...n}=e;return(0,i.createElement)(o.Card,null,(0,i.createElement)(o.CardMedia,{style:{width:n.width,height:n.height}},(0,i.createElement)("img",t({className:"generation-zoom",alt:n.alt||n.label},n))),(0,i.createElement)(se,n))},ue=M.length?"":g.description;return(0,i.createElement)("figure",te,(0,i.createElement)((t=>{const[n,l]=(0,i.useState)(!1),[s,c]=(0,i.useState)("refreshing-button");return(0,i.useEffect)((()=>{c(n?"refreshing-button is-refreshing":"refreshing-button")}),[n]),(0,i.createElement)(r.BlockControls,null,(0,i.createElement)(o.Toolbar,{label:(0,a.__)("Imajinn AI","imajinn-ai"),className:"imajinn-toolbar"},(0,i.createElement)(o.ToolbarGroup,null,e&&!1!==G&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"credit-label"},(0,a.__)("Credits:","imajinn-ai")),(0,i.createElement)("div",{className:"credits"},G),(0,i.createElement)(o.ToolbarButton,{className:s,disabled:n,icon:(0,i.createElement)(o.Dashicon,{icon:"update"}),label:(0,a.__)("Refresh count","imajinn-ai"),onClick:async()=>{l(!0),await ae(),l(!1)}})),(0,i.createElement)(_,null))))}),null),(0,i.createElement)((e=>{if(e.history<=0)return null;const t=e.history.map(((e,t)=>(0,i.createElement)(o.PanelBody,{key:t},(0,i.createElement)("h2",{className:"components-panel__body-title"},e.generations.map(((e,t)=>(0,i.createElement)("img",{key:t,src:e.thumbnail,alt:(0,a.sprintf)((0,a.__)("Result %d","imajinn-ai"),(t+1).toString())}))),(0,i.createElement)(o.Button,{variant:"secondary",label:(0,a.__)("Load prompt results","imajinn-ai"),onClick:()=>{D(e.prompt),I(e.generations),Y(e.ratio),W(e.ratio),q(""),Z(""),Q("")}},(0,a.__)("Load","imajinn-ai"))),(0,i.createElement)(o.PanelRow,null,(0,i.createElement)(o.__experimentalText,{numberOfLines:2,truncate:!0},e.prompt)))));return(0,i.createElement)(r.InspectorControls,{key:"setting"},(0,i.createElement)(o.Panel,{header:(0,a.__)("Generation History","imajinn-ai"),className:"imajinn-history"},t))}),{history:S}),(0,i.createElement)(o.Placeholder,{icon:IMAJINN.custom_editor?null:f.mC,instructions:ue,label:IMAJINN.custom_editor?null:(0,a.__)("AI Text-to-Image Generator","imajinn-ai")},!e&&(0,i.createElement)(x,{setCredits:V,isConnected:e,setIsConnected:n}),e&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)((()=>v?(0,i.createElement)(o.Notice,{status:"warning"},(0,i.createElement)(o.__experimentalText,null,v)):null),null),(0,i.createElement)((()=>{const e="processing"===L?(0,a.sprintf)((0,a.__)("Generating %s%%","imajinn-ai"),T):(0,a.__)("Queued","imajinn-ai");return l?(0,i.createElement)("div",{className:"imajinn-loading"},(0,i.createElement)(f.ZZ,null),(0,i.createElement)("div",null,(0,i.createElement)(o.__experimentalText,null,e),(0,i.createElement)(o.Button,{isDestructive:!0,variant:"link",onClick:()=>{(async()=>{if(!k)return E("Error: No job id"),!1;const e=await fetch(`${ajaxurl}?action=imajinn-cancel-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({job_id:k,nonce:IMAJINN.nonce})}),t=await e.json();t.success?(N(null),y(!1),C(null),V(t.data.remaining_credits)):E(t.data[0].message)})()}},(0,a.__)("Cancel")))):null}),null),(0,i.createElement)((e=>{let{...n}=e;const[a,r]=(0,i.useState)("400px"),[l,s]=(0,i.useState)("400px");if((0,i.useEffect)((()=>{r(1===M.length?"400px":"300px"),"3:2"===z?s(1===M.length?"266px":"200px"):"2:3"===z?(s("450px"),r("300px")):s(1===M.length?"400px":"300px")}),[M,z]),0===M.length)return null;const c=M.map(((e,t)=>(0,i.createElement)(o.FlexBlock,{style:{minWidth:a,flexGrow:0},key:t.toString()},(0,i.createElement)(ce,{src:e.preview,genindex:t,width:a,height:l,label:"Result "+(t+1).toString()}))));return(0,i.createElement)(o.Flex,t({},n,{align:"center",wrap:"true",gap:0,justify:"space-around",className:"results-grid"}),c)}),null),(0,i.createElement)("div",{className:"prompt-form"},(0,i.createElement)(o.TextareaControl,{disabled:l,maxLength:450,value:B,label:(0,i.createElement)(i.Fragment,null,(0,a.__)("Prompt - Enter a detailed English description of the image you would like to generate.","imajinn-ai"),(0,i.createElement)(b,null)),className:"text-prompt",onChange:e=>D(e)}),(0,i.createElement)("div",{className:"styles-form"},(0,i.createElement)((e=>(0,i.createElement)(o.TreeSelect,{disabled:l,label:(0,a.__)("Select an image style","imajinn-ai"),noOptionLabel:(0,a.__)("No Style","imajinn-ai"),selectedId:H,onChange:e=>{q(e)},__next36pxDefaultSize:!0,tree:j.styles})),null),(0,i.createElement)((e=>(0,i.createElement)(o.SelectControl,{__next36pxDefaultSize:!0,allowReset:!0,disabled:l,label:(0,a.__)("Select an Artist style to mimic","imajinn-ai"),value:$,onChange:e=>{Z(e)},options:j.artists})),null),(0,i.createElement)((e=>(0,i.createElement)(o.SelectControl,{__next36pxDefaultSize:!0,allowReset:!0,disabled:l,label:(0,a.__)("Select a style modifier","imajinn-ai"),value:K,onChange:e=>{Q(e)},options:j.modifiers})),null),(0,i.createElement)(o.Button,{icon:h,disabled:l,label:(0,a._x)("Clear styles","clear the image style selects","imajinn-ai"),onClick:()=>{q(""),Z(""),Q("")}}))),(0,i.createElement)(o.Flex,{align:"top",wrap:"true"},(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((()=>{const e={"1:1":(0,a.__)("Square","imajinn-ai"),"3:2":(0,a.__)("Wide","imajinn-ai"),"2:3":(0,a.__)("Tall","imajinn-ai")}[F]+" images"+("1:1"!==F?" - "+(0,a.__)("slower to generate","imajinn-ai"):"");return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.__experimentalRadioGroup,{id:"imajinn-ratio",label:(0,a.__)("Select an image ratio to generate.","imajinn-ai"),defaultChecked:"1:1",disabled:l,onChange:Y,checked:F},(0,i.createElement)(o.__experimentalRadio,{value:"1:1",icon:s},"1:1"),(0,i.createElement)(o.__experimentalRadio,{value:"3:2",icon:c},"3:2"),(0,i.createElement)(o.__experimentalRadio,{className:"ratio-3-2",value:"2:3",icon:c},"2:3")),(0,i.createElement)("br",null),(0,i.createElement)(o.__experimentalText,null,e))}),null)),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((e=>(0,i.createElement)(o.Button,{isPrimary:!0,disabled:l,onClick:ne},(0,a.__)("Generate","imajinn-ai"))),null),(0,i.createElement)((e=>{const[n,r]=(0,i.useState)(e.showUpgrade),l=()=>{r(!1),e.setShowUpgrade(!1)};return(0,i.useEffect)((()=>{r(e.showUpgrade)}),[r,e]),(0,i.createElement)(i.Fragment,null,n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"400px"},icon:(0,i.createElement)(o.Icon,{icon:p}),title:(0,a.__)("Upgrade Plan","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)("Sorry, you are out of available image generation credits. You can get more credits by upgrading your account to one of our premium plans.","imajinn-ai")),(0,i.createElement)("div",{className:"imajinn-upgrade-modal-buttons"},(0,i.createElement)(o.Button,{variant:"primary",href:IMAJINN.checkout_url,target:"_blank"},(0,a.__)("Get More Credits","imajinn-ai")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a._x)("Cancel","Don't upgrade now","imajinn-ai")))))}),{showUpgrade:J,setShowUpgrade:U})))),(0,i.createElement)((()=>IMAJINN.custom_editor?null:(0,i.createElement)("div",{className:"corner-controls"},(0,i.createElement)(_,null),(0,i.createElement)(o.Button,{className:"imajinn-close-button",icon:h,label:(0,a.__)("Close Imajinn Block","imajinn-ai"),onClick:()=>{(()=>{const{removeBlocks:e}=wp.data.dispatch("core/block-editor");e(wp.data.select("core/block-editor").getSelectedBlockClientIds())})()}}))),null)),(0,i.createElement)("div",{className:"imajinn-footer"},(0,i.createElement)(o.Button,{onClick:()=>{(async()=>{const e=await fetch(`${ajaxurl}?action=imajinn-account-url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nonce:IMAJINN.nonce})}),t=await e.json();t.success?window.open(t.data.account_url,"_blank"):E(t.data[0].message)})()}},(0,a.__)("Account","imajinn-ai")),(0,i.createElement)(w,null),(0,i.createElement)("a",{href:"https://infiniteuploads.com/support/",target:"_blank"},(0,a.__)("Support","imajinn-ai")),(0,i.createElement)("span",{className:"imajinn-credits"},(0,a._x)("Made with ","Made with love by Infinite Uploads","imajinn-ai"),(0,i.createElement)(o.Dashicon,{icon:"heart","aria-label":(0,a._x)("love","Made with love by Infinite Uploads","imajinn-ai")}),(0,a._x)(" by ","Made with love by Infinite Uploads","imajinn-ai"),(0,i.createElement)("a",{href:"https://infiniteuploads.com/",target:"_blank"},"Infinite Uploads"))))},save:function(){return null},icon:f.DT})}()}();
     1!function(){"use strict";var e={684:function(e,t,n){n.d(t,{DT:function(){return a},ZZ:function(){return o},mC:function(){return r}});var i=n(307);function a(){return(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68.99 99",height:"30",width:"30"},(0,i.createElement)("path",{d:"M65.19,60.78c3.9-3.9,6.19-17.59-.2-23.67-4.3-2.8-10.87,1.08-18.09,.8-.51-.02-1.02,.07-1.49,.26-.67,.28-1.44,.72-2.26,1.42-2.56,2.19-5.99,3.51-8.31,2.21-1.84-1.23-1.39-3.92-1.31-4.32-3.97,.8-4.55-.88-8.17,.24-6.84,2.12-18.72,17.38-9.96,22.27,3.89,1.73,11.79,.79,11.79,.79,0,0,6.33,8.55,.95,12.41-5.03,3.61-9.48-.45-15.51-.97-12.95-1.21-19.27,16.96-2.54,26.78-3.64-6.18-4.42-14.42,3.76-14.42,5.68,0,13.27,8.43,24.48,7.03,9.69-1.21,13.03-5.15,17.38-16.07,2.01-4.71,6.92-10.71,6.92-10.71-6.91,2.54-10.67-.61-14.5-1.96-3.83-1.34-8.87-2.09-8.87-2.09,6.29,0,11.48,2.43,15.72,3.05,4.07,.6,7.6-.43,10.22-3.05Z"}),(0,i.createElement)("path",{d:"M54.55,13.82c-2.78-2.37-5.77-6.73-8.76-7.16-4.03-.58-5.66,1.64-6.51,4.46,0-.19-.01-.38-.03-.57L38.55,.04c0-.05-.08-.05-.08,0l-.88,10.25c-.1,1.36,.04,2.72,.4,4.03l.58,1.15c-.02,.39-.01,.62-.01,.62-1.14,1.24-1.97,3.51-2.59,5.14l.53,1.44s.1,2.24-1.84,4.55c0,0-1.2,1.43-1.34,1.77-.17,.4-.16,.96,.47,1.01,.64,.05,2.02,.23,2.02,.23l-.03,2.06c0,.58,.27,2.39,.42,2.86,.58,1.79,.37,3.29-.15,3.43-1.56,.45-1.92-1.14-1.92-1.14,0,0-1.22,4.58,3.55,3.85,3.06-.47,4.72-4.09,7.57-5.19h0c.18-.07,.36-.1,.55-.11,4.53-.1,7.41-.84,7.93-3.92,4.84-.42,6.65-2.72,7.81-7.44,1.21-4.91-2.73-7.17-7.01-10.81Z"}))}function r(){return(0,i.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"55.435381255341",height:"60",viewBox:"0 0 1167.58 1263.72",version:"1.1"},(0,i.createElement)("defs",null,(0,i.createElement)("clipPath",{id:"clip1"},(0,i.createElement)("path",{d:"M 525 1006 L 595 1006 L 595 1263.71875 L 525 1263.71875 Z M 525 1006 "})),(0,i.createElement)("clipPath",{id:"clip2"},(0,i.createElement)("path",{d:"M 1018 1006 L 1167.578125 1006 L 1167.578125 1212 L 1018 1212 Z M 1018 1006 "}))),(0,i.createElement)("g",{id:"surface1"},(0,i.createElement)("path",{d:"M 883.503906 564.917969 C 919.703125 528.71875 941.007813 401.410156 881.6875 344.964844 C 841.726563 318.957031 780.652344 354.957031 713.5625 352.410156 C 708.824219 352.230469 704.105469 353.039063 699.722656 354.847656 C 693.507813 357.414063 686.355469 361.507813 678.730469 368.042969 C 654.972656 388.40625 623.070313 400.625 601.488281 388.585938 C 584.429688 377.132813 588.597656 352.140625 589.332031 348.394531 C 552.476563 355.824219 547.042969 340.191406 513.355469 350.644531 C 449.75 370.382813 339.335938 512.171875 420.820313 557.613281 C 456.992188 573.714844 530.402344 564.917969 530.402344 564.917969 C 530.402344 564.917969 589.253906 644.367188 539.238281 680.246094 C 492.445313 713.808594 451.089844 676.105469 395.078125 671.234375 C 274.757813 660.003906 216.007813 828.910156 371.429688 920.136719 C 337.640625 862.695313 330.320313 786.113281 406.339844 786.113281 C 459.125 786.113281 529.695313 864.453125 633.84375 851.433594 C 723.941406 840.171875 754.910156 803.570313 795.363281 702.039063 C 814.039063 658.285156 859.652344 602.535156 859.652344 602.535156 C 795.457031 626.1875 760.519531 596.839844 724.90625 584.359375 C 689.289063 571.878906 642.421875 564.917969 642.421875 564.917969 C 700.839844 564.917969 749.109375 587.472656 788.523438 593.257813 C 826.324219 598.800781 859.152344 589.269531 883.503906 564.917969 "}),(0,i.createElement)("path",{d:"M 784.621094 128.429688 C 758.757813 106.421875 730.980469 65.921875 703.167969 61.910156 C 665.6875 56.5 650.527344 77.128906 642.636719 103.398438 C 642.59375 101.628906 642.523438 99.859375 642.386719 98.089844 L 635.902344 0.351563 C 635.871094 -0.121094 635.1875 -0.121094 635.15625 0.351563 L 626.976563 95.570313 C 626.089844 108.179688 627.359375 120.851563 630.730469 133.03125 L 636.097656 143.699219 C 635.9375 147.328125 635.964844 149.46875 635.964844 149.46875 C 625.332031 161.011719 617.640625 182.050781 611.933594 197.261719 L 616.851563 210.640625 C 616.851563 210.640625 617.800781 231.441406 599.78125 252.960938 C 599.78125 252.960938 588.667969 266.253906 587.359375 269.429688 C 585.824219 273.152344 585.828125 278.3125 591.742188 278.785156 C 597.652344 279.257813 610.558594 280.914063 610.558594 280.914063 L 610.324219 300.066406 C 610.324219 305.457031 612.859375 322.316406 614.246094 326.636719 C 619.597656 343.292969 617.640625 357.179688 612.886719 358.539063 C 598.386719 362.683594 595.0625 347.902344 595.0625 347.902344 C 595.0625 347.902344 583.699219 390.441406 628.046875 383.652344 C 656.480469 379.300781 671.941406 345.640625 698.414063 335.460938 C 700.050781 334.828125 701.785156 334.496094 703.539063 334.457031 C 745.660156 333.558594 772.402344 326.636719 777.207031 298.027344 C 822.210938 294.09375 838.976563 272.722656 849.785156 228.890625 C 861.050781 183.21875 824.402344 162.28125 784.621094 128.429688 "}),(0,i.createElement)("path",{d:"M 0 1211.832031 L 0 1006.238281 L 14.34375 1006.238281 L 14.34375 1211.832031 L 0 1211.832031 "}),(0,i.createElement)("path",{d:"M 191.785156 1211.832031 L 115.144531 1021.988281 L 114.019531 1021.988281 C 114.769531 1033.609375 115.144531 1045.519531 115.144531 1057.710938 L 115.144531 1211.832031 L 101.363281 1211.832031 L 101.363281 1006.238281 L 123.582031 1006.238281 L 196.425781 1187.082031 L 197.269531 1187.082031 L 270.113281 1006.238281 L 291.769531 1006.238281 L 291.769531 1211.832031 L 277.285156 1211.832031 L 277.285156 1056.019531 C 277.285156 1045.140625 277.847656 1033.890625 278.972656 1022.269531 L 277.847656 1022.269531 L 200.925781 1211.832031 L 191.785156 1211.832031 "}),(0,i.createElement)("path",{d:"M 399.320313 1126.328125 L 472.867188 1126.328125 L 444.882813 1052.21875 C 442.535156 1046.410156 439.722656 1038.351563 436.445313 1028.03125 C 433.914063 1037.03125 431.144531 1045.191406 428.148438 1052.5 Z M 477.648438 1139.269531 L 394.117188 1139.269531 L 365.429688 1211.832031 L 349.539063 1211.832031 L 432.226563 1005.390625 L 441.367188 1005.390625 L 522.367188 1211.832031 L 506.195313 1211.832031 L 477.648438 1139.269531 "}),(0,i.createElement)("g",{clipPath:"url(#clip1)",clipRule:"nonzero"},(0,i.createElement)("path",{d:"M 546.523438 1263.71875 C 537.902344 1263.71875 530.824219 1262.460938 525.289063 1259.921875 L 525.289063 1247.550781 C 532.601563 1249.421875 539.589844 1250.359375 546.242188 1250.359375 C 568.929688 1250.359375 580.273438 1237.988281 580.273438 1213.238281 L 580.273438 1006.238281 L 594.617188 1006.238281 L 594.617188 1211.832031 C 594.617188 1246.421875 578.585938 1263.71875 546.523438 1263.71875 "})),(0,i.createElement)("path",{d:"M 680.230469 1211.832031 L 680.230469 1006.238281 L 694.574219 1006.238281 L 694.574219 1211.832031 L 680.230469 1211.832031 "}),(0,i.createElement)("path",{d:"M 931.078125 1211.832031 L 916.59375 1211.832031 L 794.8125 1029.300781 L 793.6875 1029.300781 C 794.8125 1051.050781 795.375 1067.460938 795.375 1078.519531 L 795.375 1211.832031 L 781.59375 1211.832031 L 781.59375 1006.238281 L 795.9375 1006.238281 L 917.578125 1188.488281 L 918.421875 1188.488281 C 917.578125 1171.609375 917.15625 1155.578125 917.15625 1140.390625 L 917.15625 1006.238281 L 931.078125 1006.238281 L 931.078125 1211.832031 "}),(0,i.createElement)("g",{clipPath:"url(#clip2)",clipRule:"nonzero"},(0,i.createElement)("path",{d:"M 1167.578125 1211.832031 L 1153.101563 1211.832031 L 1031.320313 1029.300781 L 1030.191406 1029.300781 C 1031.320313 1051.050781 1031.878906 1067.460938 1031.878906 1078.519531 L 1031.878906 1211.832031 L 1018.101563 1211.832031 L 1018.101563 1006.238281 L 1032.441406 1006.238281 L 1154.078125 1188.488281 L 1154.929688 1188.488281 C 1154.078125 1171.609375 1153.660156 1155.578125 1153.660156 1140.390625 L 1153.660156 1006.238281 L 1167.578125 1006.238281 L 1167.578125 1211.832031 "}))))}function o(){return(0,i.useEffect)((()=>{var t,i;t=this,i=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}var a=Math.abs;function r(e){return e}function o(e,t,n){var i=1-n;return 3*n*i*(e*i+t*n)+n*n*n}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return e<0||e>1||n<0||n>1?null:a(e-t)<=1e-5&&a(n-i)<=1e-5?r:function(r){if(r<=0)return e>0?r*t/e:0===t&&n>0?r*i/n:0;if(r>=1)return n<1?1+(r-1)*(i-1)/(n-1):1===n&&e<1?1+(r-1)*(t-1)/(e-1):1;for(var l,s=0,c=1;s<c;){var u=o(e,n,l=(s+c)/2);if(a(r-u)<1e-5)break;u<r?s=l:c=l}return o(t,i,l)}}function s(){return 1}function c(e){return 1===e?1:0}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(1===e){if(0===t)return c;if(1===t)return s}var n=1/e;return function(e){return e>=1?1:(e+=t*n)-e%n}}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(Number.isInteger(e))return e;var n=Math.pow(10,t);return Math.round(e*n)/n}var d=Math.PI/180;function h(e,t,n){return e>=.5?n:t}function p(e,t,n){return 0===e||t===n?t:e*(n-t)+t}function g(e,t,n){var i=p(e,t,n);return i<=0?0:i}function f(e,t,n){return 0===e?t:1===e?n:{x:p(e,t.x,n.x),y:p(e,t.y,n.y)}}function y(e,t,n){return 0===e?t:1===e?n:{x:g(e,t.x,n.x),y:g(e,t.y,n.y)}}function v(e,t,n){var i=function(e,t,n){return Math.round(p(e,t,n))}(e,t,n);return i<=0?0:i>=255?255:i}function b(e,t,n){return 0===e?t:1===e?n:{r:v(e,t.r,n.r),g:v(e,t.g,n.g),b:v(e,t.b,n.b),a:p(e,null==t.a?1:t.a,null==n.a?1:n.a)}}function w(e,t,n){if(0===e)return t;if(1===e)return n;var i=t.length;if(i!==n.length)return h(e,t,n);for(var a=[],r=0;r<i;r++)a.push(b(e,t[r],n[r]));return a}function _(e,t,n){var i=t.length;if(i!==n.length)return h(e,t,n);for(var a=new Array(i),r=0;r<i;r++)a[r]=p(e,t[r],n[r]);return a}function E(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function x(e,t){if(--t<=0)return e;var n=(e=Object.assign([],e)).length;do{for(var i=0;i<n;i++)e.push(e[i])}while(--t>0);return e}var j=/\.0+$/g;function k(e){return Number.isInteger(e)?e+"":e.toFixed(6).replace(j,"")}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e&&e.length?e.map(k).join(t):""}function M(e){return k(e.x)+","+k(e.y)}function I(e){return e?null==e.a||e.a>=1?"rgb("+e.r+","+e.g+","+e.b+")":"rgba("+e.r+","+e.g+","+e.b+","+e.a+")":"transparent"}var S={f:null,i:y,u:function(e,t){return function(n){var i=t(n);e.setAttribute("rx",k(i.x)),e.setAttribute("ry",k(i.y))}}},A={f:null,i:function(e,t,n){return 0===e?t:1===e?n:{width:g(e,t.width,n.width),height:g(e,t.height,n.height)}},u:function(e,t){return function(n){var i=t(n);e.setAttribute("width",k(i.width)),e.setAttribute("height",k(i.height))}}},L=Math.sin,N=Math.cos,T=Math.acos,P=Math.asin,B=Math.tan,D=Math.atan2,R=Math.PI/180,O=180/Math.PI,F=Math.sqrt,Y=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;t(this,e),this.m=[n,i,a,r,o,l],this.i=null,this.w=null,this.s=null}return i(e,[{key:"point",value:function(e,t){var n=this.m;return{x:n[0]*e+n[2]*t+n[4],y:n[1]*e+n[3]*t+n[5]}}},{key:"translateSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e&&!t)return this;var n=this.m;return n[4]+=n[0]*e+n[2]*t,n[5]+=n[1]*e+n[3]*t,this.w=this.s=this.i=null,this}},{key:"rotateSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e%=360){var t=L(e*=R),n=N(e),i=this.m,a=i[0],r=i[1];i[0]=a*n+i[2]*t,i[1]=r*n+i[3]*t,i[2]=i[2]*n-a*t,i[3]=i[3]*n-r*t,this.w=this.s=this.i=null}return this}},{key:"scaleSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(1!==e||1!==t){var n=this.m;n[0]*=e,n[1]*=e,n[2]*=t,n[3]*=t,this.w=this.s=this.i=null}return this}},{key:"skewSelf",value:function(e,t){if(t%=360,(e%=360)||t){var n=this.m,i=n[0],a=n[1],r=n[2],o=n[3];e&&(e=B(e*R),n[2]+=i*e,n[3]+=a*e),t&&(t=B(t*R),n[0]+=r*t,n[1]+=o*t),this.w=this.s=this.i=null}return this}},{key:"resetSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=this.m;return o[0]=e,o[1]=t,o[2]=n,o[3]=i,o[4]=a,o[5]=r,this.w=this.s=this.i=null,this}},{key:"recomposeSelf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return this.isIdentity||this.resetSelf(),e&&(e.x||e.y)&&this.translateSelf(e.x,e.y),t&&this.rotateSelf(t),n&&(n.x&&this.skewSelf(n.x,0),n.y&&this.skewSelf(0,n.y)),!i||1===i.x&&1===i.y||this.scaleSelf(i.x,i.y),a&&(a.x||a.y)&&this.translateSelf(a.x,a.y),this}},{key:"decompose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.m,i=n[0]*n[0]+n[1]*n[1],a=[[n[0],n[1]],[n[2],n[3]]],r=F(i);if(0===r)return{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:0,y:0},skew:{x:0,y:0},rotate:0};a[0][0]/=r,a[0][1]/=r;var o=n[0]*n[3]-n[1]*n[2]<0;o&&(r=-r);var l=a[0][0]*a[1][0]+a[0][1]*a[1][1];a[1][0]-=a[0][0]*l,a[1][1]-=a[0][1]*l;var s=F(a[1][0]*a[1][0]+a[1][1]*a[1][1]);if(0===s)return{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:r,y:0},skew:{x:0,y:0},rotate:0};a[1][0]/=s,a[1][1]/=s,l/=s;var c=0;return a[1][1]<0?(c=T(a[1][1])*O,a[0][1]<0&&(c=360-c)):c=P(a[0][1])*O,o&&(c=-c),l=D(l,F(a[0][0]*a[0][0]+a[0][1]*a[0][1]))*O,{origin:{x:n[4],y:n[5]},translate:{x:e,y:t},scale:{x:r,y:s},skew:{x:l,y:0},rotate:c}}},{key:"toString",value:function(){return null===this.s&&(this.s="matrix("+this.m.map(V).join(" ")+")"),this.s}},{key:"determinant",get:function(){var e=this.m;return e[0]*e[3]-e[1]*e[2]}},{key:"isIdentity",get:function(){if(null===this.i){var e=this.m;this.i=1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]}return this.i}}]),e}(),z=/\.0+$/;function V(e){return Number.isInteger(e)?e:e.toFixed(14).replace(z,"")}function G(e,t,n){return e+(t-e)*n}function W(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a={x:G(e.x,t.x,n),y:G(e.y,t.y,n)};return i&&(a.a=J(e,t)),a}function J(e,t){return Math.atan2(t.y-e.y,t.x-e.x)}function H(e,t,n,i){var a=1-i;return a*a*e+2*a*i*t+i*i*n}function U(e,t,n,i){return 2*(1-i)*(t-e)+2*i*(n-t)}function q(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={x:H(e.x,t.x,n.x,i),y:H(e.y,t.y,n.y,i)};return a&&(r.a=Z(e,t,n,i)),r}function Z(e,t,n,i){return Math.atan2(U(e.y,t.y,n.y,i),U(e.x,t.x,n.x,i))}function $(e,t,n,i,a){var r=a*a;return a*r*(i-e+3*(t-n))+3*r*(e+n-2*t)+3*a*(t-e)+e}function K(e,t,n,i,a){var r=1-a;return 3*(r*r*(t-e)+2*r*a*(n-t)+a*a*(i-n))}function Q(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o={x:$(e.x,t.x,n.x,i.x,a),y:$(e.y,t.y,n.y,i.y,a)};return r&&(o.a=X(e,t,n,i,a)),o}function X(e,t,n,i,a){return Math.atan2(K(e.y,t.y,n.y,i.y,a),K(e.x,t.x,n.x,i.x,a))}function ee(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ne(t)){if(ie(n))return q(t,n.start,n,e,i)}else if(ne(n)){if(t.end)return q(t,t.end,n,e,i)}else{if(t.end)return n.start?Q(t,t.end,n.start,n,e,i):q(t,t.end,n,e,i);if(n.start)return q(t,n.start,n,e,i)}return W(t,n,e,i)}function te(e,t,n){var i=ee(e,t,n,!0);return i.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e+Math.PI:e}(i.a)/d,i}function ne(e){return!e.type||"corner"===e.type}function ie(e){return null!=e.start&&!ne(e)}Object.freeze({M:2,L:2,Z:0,H:1,V:1,C:6,Q:4,T:2,S:4,A:7});var ae=new Y,re={f:function(e){return e?e.join(" "):""},i:function(t,n,i){if(0===t)return n;if(1===t)return i;var a=n.length;if(a!==i.length)return h(t,n,i);for(var r,o=new Array(a),l=0;l<a;l++){if((r=e(n[l]))!==e(i[l]))return h(t,n,i);if("number"===r)o[l]=p(t,n[l],i[l]);else{if(n[l]!==i[l])return h(t,n,i);o[l]=n[l]}}return o}},oe={f:null,i:_,u:function(e,t){return function(n){var i=t(n);e.setAttribute("x1",k(i[0])),e.setAttribute("y1",k(i[1])),e.setAttribute("x2",k(i[2])),e.setAttribute("y2",k(i[3]))}}},le={f:k,i:p},se={f:k,i:function(e,t,n){var i=p(e,t,n);return i<=0?0:i>=1?1:i}},ce={f:C,i:function(e,t,n){var i,a,r,o=t.length,l=n.length;if(o!==l)if(0===o)t=E(o=l,0);else if(0===l)l=o,n=E(o,0);else{var s=(r=(i=o)*(a=l)/function(e,t){for(var n;t;)n=t,t=e%t,e=n;return e||1}(i,a))<0?-r:r;t=x(t,Math.floor(s/o)),n=x(n,Math.floor(s/l)),o=l=s}for(var c=[],u=0;u<o;u++)c.push(m(g(e,t[u],n[u]),6));return c}};function ue(e,t,n,i,a,r,o,l){return t=function(e,t,n){for(var i,a,r,o=e.length-1,l={},s=0;s<=o;s++)(i=e[s]).e&&(i.e=t(i.e)),i.v&&"g"===(a=i.v).t&&a.r&&(r=n.getElementById(a.r))&&(l[a.r]=r.querySelectorAll("stop"));return l}(e,i,l),function(i){var a,r=n(i,e,me);return r?"c"===r.t?I(r.v):"g"===r.t?(t[r.r]&&function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].setAttribute("stop-color",I(t[n]))}(t[r.r],r.v),(a=r.r)?"url(#"+a+")":"none"):"none":"none"}}function me(e,t,n){if(0===e)return t;if(1===e)return n;if(t&&n){var i=t.t;if(i===n.t)switch(t.t){case"c":return{t:i,v:b(e,t.v,n.v)};case"g":if(t.r===n.r)return{t:i,v:w(e,t.v,n.v),r:t.r}}}return h(e,t,n)}var de={blur:y,brightness:g,contrast:g,"drop-shadow":function(e,t,n){return 0===e?t:1===e?n:{blur:y(e,t.blur,n.blur),offset:f(e,t.offset,n.offset),color:b(e,t.color,n.color)}},grayscale:g,"hue-rotate":p,invert:g,opacity:g,saturate:g,sepia:g};function he(e,t,n){if(0===e)return t;if(1===e)return n;var i=t.length;if(i!==n.length)return h(e,t,n);for(var a,r=[],o=0;o<i;o++){if(t[o].type!==n[o].type)return t;if(!(a=de[t[o].type]))return h(e,t,n);r.push({type:t.type,value:a(e,t[o].value,n[o].value)})}return r}var pe={blur:function(e){return e?function(t){e.setAttribute("stdDeviation",M(t))}:null},brightness:function(e,t,n){return(e=fe(n,t))?function(t){t=k(t),e.map((function(e){return e.setAttribute("slope",t)}))}:null},contrast:function(e,t,n){return(e=fe(n,t))?function(t){var n=k((1-t)/2);t=k(t),e.map((function(e){e.setAttribute("slope",t),e.setAttribute("intercept",n)}))}:null},"drop-shadow":function(e,t,n){var i=n.getElementById(t+"-blur");if(!i)return null;var a=n.getElementById(t+"-offset");if(!a)return null;var r=n.getElementById(t+"-flood");return r?function(e){i.setAttribute("stdDeviation",M(e.blur)),a.setAttribute("dx",k(e.offset.x)),a.setAttribute("dy",k(e.offset.y)),r.setAttribute("flood-color",I(e.color))}:null},grayscale:function(e){return e?function(t){e.setAttribute("values",C(function(e){return[.2126+.7874*(e=1-e),.7152-.7152*e,.0722-.0722*e,0,0,.2126-.2126*e,.7152+.2848*e,.0722-.0722*e,0,0,.2126-.2126*e,.7152-.7152*e,.0722+.9278*e,0,0,0,0,0,1,0]}(t)))}:null},"hue-rotate":function(e){return e?function(t){return e.setAttribute("values",k(t))}:null},invert:function(e,t,n){return(e=fe(n,t))?function(t){t=k(t)+" "+k(1-t),e.map((function(e){return e.setAttribute("tableValues",t)}))}:null},opacity:function(e,t,n){return(e=n.getElementById(t+"-A"))?function(t){return e.setAttribute("tableValues","0 "+k(t))}:null},saturate:function(e){return e?function(t){return e.setAttribute("values",k(t))}:null},sepia:function(e){return e?function(t){return e.setAttribute("values",C(function(e){return[.393+.607*(e=1-e),.769-.769*e,.189-.189*e,0,0,.349-.349*e,.686+.314*e,.168-.168*e,0,0,.272-.272*e,.534-.534*e,.131+.869*e,0,0,0,0,0,1,0]}(t)))}:null}},ge=["R","G","B"];function fe(e,t){var n=ge.map((function(n){return e.getElementById(t+"-"+n)||null}));return-1!==n.indexOf(null)?null:n}var ye={fill:ue,"fill-opacity":se,stroke:ue,"stroke-opacity":se,strokeWidth:le,strokeDashoffset:{f:k,i:p},strokeDasharray:ce,opacity:se,transform:function(t,n,i,a){if(!(t=function(t,n){if(!t||"object"!==e(t))return null;var i=!1;for(var a in t)t.hasOwnProperty(a)&&(t[a]&&t[a].length?(t[a].forEach((function(e){e.e&&(e.e=n(e.e))})),i=!0):delete t[a]);return i?t:null}(t,a)))return null;var r=function(e,a,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t[e]?i(a,t[e],r):n&&n[e]?n[e]:o};return n&&n.a&&t.o?function(e){var n=i(e,t.o,te);return ae.recomposeSelf(n,r("r",e,p,0)+n.a,r("k",e,f),r("s",e,f),r("t",e,f)).toString()}:function(e){return ae.recomposeSelf(r("o",e,ee,null),r("r",e,p,0),r("k",e,f),r("s",e,f),r("t",e,f)).toString()}},"#filter":function(e,t,n,i,a,r,o,l){if(!t.items||!e||!e.length)return null;var s=function(e,t){var n=(e=e.map((function(e){return e&&pe[e[0]]?(t.getElementById(e[1]),pe[e[0]](t.getElementById(e[1]),e[1],t)):null}))).length;return function(t){for(var i=0;i<n;i++)e[i]&&e[i](t[i].value)}}(t.items,l);return s?(e=function(e,t){return e.map((function(e){return e.e=t(e.e),e}))}(e,i),function(t){s(n(t,e,he))}):null},"#line":oe,points:{f:C,i:_},d:re,r:le,"#size":A,"#radius":S,_:function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)this[e[n]]=t;else this[e]=t}},ve=function(){function e(n){t(this,e),this.list=n,this.length=n.length}return i(e,[{key:"setAttribute",value:function(e,t){for(var n=this.list,i=0;i<this.length;i++)n[i].setAttribute(e,t)}},{key:"removeAttribute",value:function(e){for(var t=this.list,n=0;n<this.length;n++)t[n].removeAttribute(e)}},{key:"style",value:function(e,t){for(var n=this.list,i=0;i<this.length;i++)n[i].style[e]=t}}]),e}(),be=/-./g,we=function(e,t){return t.toUpperCase()};function _e(e){return"function"==typeof e?e:h}function Ee(e){return e?"function"==typeof e?e:Array.isArray(e)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if(!Array.isArray(e))return t;switch(e.length){case 1:return u(e[0])||t;case 2:return u(e[0],e[1])||t;case 4:return l(e[0],e[1],e[2],e[3])||t}return t}(e,null):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;switch(e){case"linear":return r;case"steps":return u(t.steps||1,t.jump||0)||n;case"bezier":case"cubic-bezier":return l(t.x1||0,t.y1||0,t.x2||0,t.y2||0)||n}return n}(e.type,e.value,null):null}function xe(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.length-1;if(e<=t[0].t)return i?[0,0,t[0].v]:t[0].v;if(e>=t[a].t)return i?[a,1,t[a].v]:t[a].v;var r,o=t[0],l=null;for(r=1;r<=a;r++){if(!(e>t[r].t)){l=t[r];break}o=t[r]}return null==l?i?[a,1,t[a].v]:t[a].v:o.t===l.t?i?[r,1,l.v]:l.v:(e=(e-o.t)/(l.t-o.t),o.e&&(e=o.e(e)),i?[r,e,n(e,o.v,l.v)]:n(e,o.v,l.v))}function je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e&&e.length?"function"!=typeof t?null:("function"!=typeof n&&(n=null),function(i){var a=xe(i,e,t);return null!=a&&n&&(a=n(a)),a}):null}function ke(e,t){return e.t-t.t}function Ce(t,n,i,a){if(!a||"object"!==e(a))return null;var r=null,o=null;return Array.isArray(a)?o=function(e){if(!e||!e.length)return null;for(var t=0;t<e.length;t++)e[t].e&&(e[t].e=Ee(e[t].e));return e.sort(ke)}(a):(o=a.keys,r=a.data||null),o?function(t,n,i,a,r){var o,l="@"===i[0],s="#"===i[0],c=ye[i],u=h;switch(l?(o=i.substr(1),i=o.replace(be,we)):s&&(i=i.substr(1)),e(c)){case"function":if(u=c(a,r,xe,Ee,i,l,n,t),s)return u;break;case"string":u=je(a,_e(c));break;case"object":if((u=je(a,_e(c.i),c.f))&&"function"==typeof c.u)return c.u(n,u,i,l,t)}return u?function(e,t,n){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3])return e instanceof ve?function(i){return e.style(t,n(i))}:function(i){return e.style[t]=n(i)};if(Array.isArray(t)){var i=t.length;return function(a){var r=n(a);if(null==r)for(var o=0;o<i;o++)e[o].removeAttribute(t);else for(var l=0;l<i;l++)e[l].setAttribute(t,r)}}return function(i){var a=n(i);null==a?e.removeAttribute(t):e.setAttribute(t,a)}}(n,i,u,l):null}(t,n,i,o,r):null}function Me(e,t,n){if(!n)return null;var i=[];for(var a in n)if(n.hasOwnProperty(a)){var r=Ce(e,t,a,n[a]);r&&i.push(r)}return i.length?i:null}var Ie=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,e),this._id=0,this._running=!1,this._animations=n,this.direction=i.direction||1,this.speed=i.speed||1,this.fps=i.fps||100,this.offset=i.offset||0}return i(e,[{key:"_start",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=-1/0,i=null,a={},r=function r(o){e._running=!0,null==i&&(i=o);var l=Math.round((o-i+t)*e.speed),s=e.fps?1e3/e.fps:0;if(l>n+s){e.offset=l,n=l;for(var c=e._animations,u=c.length,m=0,d=0;d<u;d++)a[d]?m++:(a[d]=c[d](l,e.direction),a[d]&&m++);if(m===u)return void e._stop()}e._id=window.requestAnimationFrame(r)};this._id=window.requestAnimationFrame(r)}},{key:"_stop",value:function(){this._id&&window.cancelAnimationFrame(this._id),this._running=!1}},{key:"play",value:function(){this._running||this._start(this.offset)}},{key:"stop",value:function(){this._stop(),this.offset=0;var e=this.direction,t=this._animations;requestAnimationFrame((function(){for(var n=0;n<t.length;n++)t[n](0,e)}))}},{key:"restart",value:function(){this._stop(),this.offset=0,this._start()}},{key:"pause",value:function(){this._stop()}},{key:"reverse",value:function(){this.direction=-this.direction}}],[{key:"build",value:function(t){if(!(t=function(e){if(!e||!e.root||!Array.isArray(e.animations))return null;var t=window.document.getElementById(e.root);if(!t)return null;var n=e.animations.map((function(e){return function(e,t){if(!t.duration||t.duration<0)return null;var n=function(e,t){if(!t)return null;var n=[];if(Array.isArray(t))for(var i=t.length,a=0;a<i;a++){var r=t[a];if(2===r.length){var o=null;if("string"==typeof r[0])o=e.getElementById(r[0]);else if(Array.isArray(r[0])){o=[];for(var l=0;l<r[0].length;l++)if("string"==typeof r[0][l]){var s=e.getElementById(r[0][l]);s&&o.push(s)}o=o.length?1===o.length?o[0]:new ve(o):null}if(o){var c=Me(e,o,r[1]);c&&(n=n.concat(c))}}}else for(var u in t)if(t.hasOwnProperty(u)){var m=e.getElementById(u);if(m){var d=Me(e,m,t[u]);d&&(n=n.concat(d))}}return n.length?n:null}(e,t.elements);return n?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=e.length,l=i>0?t:0;a&&n%2==0&&(l=t-l);var s=null;return function(c,u){var m=c%t,d=1+(c-m)/t;u*=i,a&&d%2==0&&(u=-u);var h=!1;if(d>n)m=l,h=!0,-1===r&&(m=i>0?0:t);else if(u<0&&(m=t-m),m===s)return!1;s=m;for(var p=0;p<o;p++)e[p](m);return h}}(n,t.duration,t.iterations||1/0,t.direction||1,!!t.alternate,t.fill||1):null}(t,e)})).filter((function(e){return!!e}));return n.length?{element:t,animations:n,options:e.options||void 0}:null}(t)))return null;var n=t.element,i=t.options||{},a=new e(t.animations,t.options);return function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("click"!==n){if("hover"===n)return t.addEventListener("mouseenter",(function(){return e.play()})),void t.addEventListener("mouseleave","freeze"===i?function(){return e.pause()}:function(){return e.stop()});e.play()}else{var a=function n(){t.removeEventListener("click",n),e.play()};t.addEventListener("click",a)}}(a,n,i.start,i.hover),a}}]),e}();return function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var n=Date.now(),i=Math.max(0,16-(n-e)),a=window.setTimeout((function(){t(n+i)}),i);return e=n+i,a},window.cancelAnimationFrame=window.clearTimeout)}(),Ie},"object"==typeof exports?e.exports=i():"function"==typeof define&&n.amdO?define(i):(t=t||self).__SVGATOR_PLAYER__=i(),__SVGATOR_PLAYER__.build({root:"e29gnwghxaec1",animations:[{duration:3e3,direction:1,iterations:0,fill:1,alternate:!1,elements:{e29gnwghxaec4:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:70,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:160,y:60.000000000000085,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:250.00000000000006,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:250.0000000000001,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:160.00000000000009,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:70.00000000000013,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:70.00000000000011,y:110.00000000000003,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec5:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:70,y:209.99999999999997,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:70,y:109.99999999999996,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:160,y:59.999999999999986,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:250.00000000000006,y:110,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:250,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:160.00000000000003,y:260,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:70.00000000000006,y:210,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec6:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:160,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:70.00000000000003,y:210.00000000000003,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:70.0000000033166,y:110.00000000017586,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:159.99999999559876,y:59.99999999808161,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:250.00000000133716,y:109.99999999826927,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:250.00000000074502,y:209.99999999748923,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:160.00000000328416,y:259.99999999938586,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec7:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:250.00000000000006,y:209.99999999827637,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:160.00000000000003,y:259.9999999982764,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:70.00000000000003,y:209.9999999982764,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:70.00000000000003,y:109.99999999827641,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:159.99999999999997,y:59.99999999827642,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:250,y:109.99999999827642,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:250.00000000000003,y:209.99999999827642,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec8:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:250.00000000000006,y:110.00000000000009,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:250.00000000000009,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:160.00000000000006,y:260.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:70.00000000000006,y:210.00000000000006,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:70.00000000000003,y:110.00000000000007,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:160.00000000000006,y:60.000000000000064,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:250,y:110.00000000000006,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}},e29gnwghxaec9:{transform:{data:{t:{x:-14.999999999999972,y:2.8740790488276007e-9}},keys:{o:[{t:0,v:{x:160,y:60,type:"corner"},e:[.545,.025,.48,.935]},{t:500,v:{x:249.99999999999997,y:110,type:"corner"},e:[.545,.025,.48,.935]},{t:1e3,v:{x:249.99999999999994,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:1500,v:{x:159.99999999999991,y:260,type:"corner"},e:[.545,.025,.48,.935]},{t:2e3,v:{x:69.99999999999991,y:210,type:"corner"},e:[.545,.025,.48,.935]},{t:2500,v:{x:69.99999999999994,y:110.00000000000001,type:"corner"},e:[.545,.025,.48,.935]},{t:3e3,v:{x:159.99999999999994,y:60.00000000000004,type:"corner"},e:[.545,.025,.48,.935]}],s:[{t:0,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:1500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:1750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2250,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:2500,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]},{t:2750,v:{x:.75,y:.75},e:[.545,.025,.48,.935]},{t:3e3,v:{x:1.2,y:1.2},e:[.545,.025,.48,.935]}]}}}}}],options:{start:"load",hover:"restart"}})}),[]),(0,i.createElement)("svg",{id:"e29gnwghxaec1",className:"imajinn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 300",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision"},(0,i.createElement)("defs",null,(0,i.createElement)("filter",{id:"e29gnwghxaec4-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec4-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec5-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec5-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec6-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec6-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec7-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec7-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec8-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec8-filter-blur-0",stdDeviation:"0,0",result:"result"})),(0,i.createElement)("filter",{id:"e29gnwghxaec9-filter",x:"-400%",width:"600%",y:"-400%",height:"600%"},(0,i.createElement)("feGaussianBlur",{id:"e29gnwghxaec9-filter-blur-0",stdDeviation:"0,0",result:"result"}))),(0,i.createElement)("circle",{id:"e29gnwghxaec2",r:"50",transform:"matrix(-1 0 -0 -1 149.99999999999997 50.00000000379265)",fill:"none",stroke:"rgb(255,122,122)",strokeWidth:"6",strokeDashoffset:"314.160000",strokeDasharray:"314.160000"}),(0,i.createElement)("circle",{id:"e29gnwghxaec3",r:"50",transform:"matrix(-1 0 -0 -1 49.99999999999997 150.00000000379259)",fill:"none",stroke:"rgb(255,122,122)",strokeWidth:"6",strokeDashoffset:"314.160000",strokeDasharray:"314.160000"}),(0,i.createElement)("path",{id:"e29gnwghxaec4",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 52.00000000000004 110.00000000344897)",filter:"url(#e29gnwghxaec4-filter)",fill:"rgb(239,237,39)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec5",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 52.00000000000004 210.00000000344886)",filter:"url(#e29gnwghxaec5-filter)",fill:"rgb(236,0,140)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec6",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 142.00000000000003 260.00000000344897)",filter:"url(#e29gnwghxaec6-filter)",fill:"rgb(238,124,30)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec7",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 232.00000000000009 210.00000000172525)",filter:"url(#e29gnwghxaec7-filter)",fill:"rgb(0,161,103)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec8",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 232.00000000000009 110.00000000344897)",filter:"url(#e29gnwghxaec8-filter)",fill:"rgb(192,53,226)",stroke:"none",strokeWidth:"6"}),(0,i.createElement)("path",{id:"e29gnwghxaec9",d:"M-10,-8.333333C-10,-17.538079,-2.538079,-25,6.666667,-25C15.871412,-25,23.333333,-17.538079,23.333333,-8.333333C23.333333,0.871412,15.871412,8.333333,6.666667,8.333333C-2.538079,8.333333,-10,0.871412,-10,-8.333333Z",transform:"matrix(1.20000000000000 0 0 1.20000000000000 142.00000000000003 60.00000000344890)",filter:"url(#e29gnwghxaec9-filter)",fill:"rgb(38,169,224)",stroke:"none",strokeWidth:"6"}))}n(609),e=n.hmd(e)},609:function(e){e.exports=window.wp.components},307:function(e){e.exports=window.wp.element}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var r=t[i]={id:i,loaded:!1,exports:{}};return e[i](r,r.exports,n),r.loaded=!0,r.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");i.length&&(e=i[i.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}(),function(){var e=window.wp.blocks;function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}var i=n(307),a=window.wp.i18n,r=window.wp.blockEditor,o=n(609),l=window.wp.primitives,s=(0,i.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(l.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),c=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),u=(0,i.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(l.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"})),m=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),d=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),h=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),p=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})),g=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),f=(0,i.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)(l.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),y=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})),v=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"infinite-uploads/imajinn-ai","version":"0.1.0","title":"Imajinn AI","category":"media","icon":"art","description":"Generate the perfect images from a text prompt in seconds with cutting-edge AI. Creates stunning images for any topic with just your imagination.","keywords":["img","image","photo","picture","ai","art","infinite"],"supports":{"html":false,"multiple":false,"customClassName":false,"reusable":false,"lock":false},"example":{"attributes":{"mode":"preview"}},"textdomain":"imajinn-ai","editorScript":"file:./block.js","editorStyle":"file:./block.css"}'),b=n(684),w=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),_=(0,i.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,i.createElement)(l.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));function E(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.Button,{className:"prompt-tips",onClick:()=>r(!0),icon:w,label:(0,a.__)("Prompt Tips","imajinn-ai")}),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"800px"},icon:(0,i.createElement)(o.Icon,{icon:w}),title:(0,a.__)("Basics of Prompt Engineering","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)('"Prompt Engineering" is an important skill to create  better generations with this text to image AI. After reading this document and applying these simple steps, you’ll be able to generate better images with the same amount of effort.',"imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Note: Your prompt should be in English as the AI model was only trained with English labels, and will function poorly with other languages. If you speak another language you can use a online translation tool, which should provide excellent results as it does not have to be perfect.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("1. Raw prompt","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Raw prompt is the simplest way of describing what you want to generate, for instance;","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Panda"),(0,i.createElement)("li",null,"A warrior with a sword"),(0,i.createElement)("li",null,"Skeleton")),(0,i.createElement)("p",null,(0,a.__)("This is the basic building block of any prompt. Most new people start by only using raw prompts, this is usually a mistake as the images you generate like this tend to get random and chaotic. It's best to include as much detail as possible in your prompt describing exactly what you want to see in the scene.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("2. Style","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Style is a crucial part of the prompt. The AI, when missing a specified style, usually chooses the one it has seen the most in related images, for example, if you generated landscape, it would probably generate realistic or oil painting looking images. Having a well chosen style + raw prompt is sometimes enough, as the style influences the image the most right after the raw prompt.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The most commonly used styles include:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Realistic"),(0,i.createElement)("li",null,"Oil painting"),(0,i.createElement)("li",null,"Pencil drawing"),(0,i.createElement)("li",null,"Concept art")),(0,i.createElement)("p",null,(0,a.__)("In the case of a realistic image, there are various ways of making it the style, most resulting in similar images. Here are some commonly used techniques of making the image realistic:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"a photo of + raw prompt"),(0,i.createElement)("li",null,"a photograph of + raw prompt"),(0,i.createElement)("li",null,"raw prompt, hyperrealistic"),(0,i.createElement)("li",null,"raw prompt, realistic")),(0,i.createElement)("p",null,(0,a.__)("You can of course combine these to get more and more realistic images.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To get oil painting you can just simply add “an oil painting of” to your prompt. This sometimes results in the image showing an oil painting in a frame, to fix this you can just re-run the prompt or use raw prompt + “oil painting”","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To make a pencil drawing just simply add “a pencil drawing of” to your raw prompt or make your prompt raw prompt + “pencil drawing”.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The same applies to landscape art.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("3. Artist","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To make your style more specific, or the image more coherent, you can use artists’ names in your prompt. For instance, if you want a very abstract image, you can add “made by Pablo Picasso” or just simply, “Picasso”.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Below are lists of artists in different styles that you can use, but we encourage you to search for different artists as it is a cool way of discovering new art.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Portrait:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"John Singer Sargent"),(0,i.createElement)("li",null,"Edgar Degas"),(0,i.createElement)("li",null,"Paul Cézanne"),(0,i.createElement)("li",null,"Jan van Eyck")),(0,i.createElement)("p",null,(0,a.__)("Oil painting:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Leonardo DaVinci"),(0,i.createElement)("li",null,"Vincent Van Gogh"),(0,i.createElement)("li",null,"Johannes Vermeer"),(0,i.createElement)("li",null,"Rembrandt")),(0,i.createElement)("p",null,(0,a.__)("Pencil/Pen drawing:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Albrecht Dürer"),(0,i.createElement)("li",null,"Leonardo da Vinci"),(0,i.createElement)("li",null,"Michelangelo"),(0,i.createElement)("li",null,"Jean-Auguste-Dominique Ingres")),(0,i.createElement)("p",null,(0,a.__)("Landscape art:","imajinn-ai")),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Thomas Moran"),(0,i.createElement)("li",null,"Claude Monet"),(0,i.createElement)("li",null,"Alfred Bierstadt"),(0,i.createElement)("li",null,"Frederic Edwin Church")),(0,i.createElement)("p",null,(0,a.__)("Mixing the artists is highly encouraged, as it can lead to interesting-looking art.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("4. Finishing touches","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("This is the part that some people take to extremes, leading to longer prompts than this article. Finishing touches are the final things that you add to your prompt to make it look like you want. For instance, if you want to make your image more artistic, add “trending on artstation”. If you want to add more realistic lighting add “Unreal Engine.” You can add anything you want, but here are some examples:","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Highly detailed, surrealism, trending on art station, triadic color scheme, smooth, sharp focus, matte, elegant, the most beautiful image ever seen, illustration, digital paint, dark, gloomy, octane render, 8k, 4k, washed colors, sharp, dramatic lighting, beautiful, post processing, picture of the day, ambient lighting, epic composition, bokeh, etc.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("5. Conclusion","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Prompt engineering allows you to have better control of what the image will look like. It (if done right) improves the image quality by a lot in every aspect.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Some fun example prompts to get you started:","imajinn-ai")),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,"A cat walks through a cyberpunk street, rain, poster, artstation, neon, futuristic, stunning, highly detailed, digital painting"),(0,i.createElement)("li",null,"a portrait of a family of dwarfs in middle earth, by Albert Bierstadt, 8K"),(0,i.createElement)("li",null,"a ",(0,i.createElement)("em",null,"[beach|jungle|scene of your choice]"),", highly detailed oil painting, unreal 5 render, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, digital art, octane render, beautiful composition, award-winning photograph, masterpiece"),(0,i.createElement)("li",null,"a close up view of a man looking like Elon Musk. rockets launching in the background, highly detailed oil painting, render, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, digital art, octane render, beautiful composition, trending on artstation, award-winning photograph, masterpiece,8k, high quality sharp anime classic anime from 2010 in style of Hayao Miyazaki"),(0,i.createElement)("li",null,"a headless astronaut in space suit, holding space helmet in hands, extremely detailed oil painting, unreal 5 render, rhads, Bruce Pennington, tim hildebrandt, digital art, octane render, beautiful composition, trending on artstation, award-winning photograph, masterpiece")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}function x(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.ToolbarButton,{onClick:()=>r(!0),icon:_,label:(0,a.__)("Help","imajinn-ai")}),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"900px"},icon:(0,i.createElement)(o.Icon,{icon:_}),title:(0,a.__)("Usage Instructions","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)("Imajinn AI is a powerful tool that uses the latest technology in AI to generate images from text. It is a great tool for writers, artists, and anyone who needs to visualize their ideas.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The Imajinn AI interface is a block that you can add to your post or page. You can add it by clicking on the plus button in the top left corner of the editor and selecting Imajinn AI. You can also add it by clicking on the Imajinn AI icon in the block inserter. It does not output any content on your site on its own, but allows you to generate and insert images into the same location in the block editor. When finished you can just close the block.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Connecting","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Infinite Uploads/Imajinn AI email and password.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Prompts","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To generate images, you need to write a prompt. A prompt is a text that describes what you want the image to look like. The prompt should be in English as the AI model was only trained with English labels, and will function poorly with other languages. The prompt can be as short as a a few words, or as long as a paragraph. The longer the prompt, the more detailed the image will be. Please see our prompt engineering guide for more information on how to write a good prompt.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Prefilled Styles","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To give you inspiration and make it easier to generate images in specific styles, we have added some dropdowns with prefilled styles that you can optionally select from. When optionally choosing options here it will append specific keywords to your prompt to achieve that style when sent to our servers.","imajinn-ai")),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Image Style","imajinn-ai")),"-",(0,a.__)("Choose from many common photographic or artistic styles and mediums.","imajinn-ai")),(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Artist Style","imajinn-ai")),"-",(0,a.__)("Choose to generate your images based on the styles of some famous artists.","imajinn-ai")),(0,i.createElement)("li",null,(0,i.createElement)("strong",null,(0,a.__)("Modifier","imajinn-ai")),"-",(0,a.__)("Some fun and common styles to give the image output that special uniqueness.","imajinn-ai"))),(0,i.createElement)("h3",null,(0,a.__)("Image Ratio","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("You can control the output ratio of the generated images. Square images are the default, while rectangular images have more pixels and take much longer to process.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("The AI model was trained on square images, so depending on the prompt rectangular images may produce strange results such as duplication of the main subject. For example a rectangular image of a person may produce two of the same person, or multiple mouths on the same face. So it may require more prompt editing and generation attempts to get the desired result. Rectangular images are best used for landscapes, scenes, and other objects that do not have a singular main subject.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Saving Images","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Imajinn AI allows you to save images to your media library, and optionally insert them into your post/page. You can save images by clicking on the save button in the bottom left corner of each image generation. You can insert images into the editor in the same location as the Imajinn block by clicking on the insert button in the bottom right corner. Inserting an image also saves it to your media library, so you don't need to choose both.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("When you save or insert an image, it can take a few seconds because we send it to our servers to be upscaled using our advanced AI models so that you get a high resolution optimized image in your media library with no watermarks.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Image Actions","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("For each image result for a generation, you can perform some actions on the image. You can share the image on social media, generate a set of variations, or perform a face repair.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("If you've found an image you like, you can click the Generate Variations button to generate a set of images with similar styles and layout to give you more options to choose from. This will take into account any modifications you've made to the prompt, while still roughly following the original image. Creating variations uses one credit just like a normal generation.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("If you've generated an image of a person and the face looks slightly deformed or unrealistic, you can click the Face Repair button to try and repair any issues with the face. This processes the image on our servers with AI-based facial restoration to restore facial details and enhance colors with a good balance of realness and fidelity. It can't fix every problem with a face, but it can help with some common issues. This tool is most effective for photographic or realistic art; if you try to use it on more abstract artistic faces results may be strange. Face repairs are not stored in your prompt history so that you can easily undo, and do not use any credits.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Credits","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("When you first signup for Imajinn AI, you get a chunk of free credits. You can use these credits to generate images and get a feel for how the plugin functions and learn how to write effective prompts. If you run out, you can purchase more credits from the Imajinn AI website via our plans.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Each prompt generation uses one credit, and creates four images that you can choose to save and/or insert into your content. There is no limit to the number of images you can save.","imajinn-ai")),(0,i.createElement)("h3",null,(0,a.__)("Filters and Restrictions","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("To ensure that the images generated are appropriate for all audiences, we have a set of filters and restrictions that are applied to prompts and the image outputs. We block the use of specific words and phrases in prompts, and we scan all generations with an AI moderation filter to block images that appear to contain nudity, or other inappropriate content.","imajinn-ai")),(0,i.createElement)("p",null,(0,a.__)("Depending on your prompt construction, it can be a fairly common occurrence for it to detect a potentially inappropriate image. If this happens, you will see a warning message. You can either change your prompt, or try generating again. We currently don't charge credits for images that are blocked by the filter, but may need to change this policy in the future. We monitor prompt violations and if we find that you are purposely using inappropriate prompts and attempting to bypass our restrictions, we may disable your account.","imajinn-ai")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}function j(e){const[n,r]=(0,i.useState)(!1),l=()=>r(!1);return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.Button,{onClick:()=>r(!0)},e.buttonLabel||(0,a.__)("License / Restrictions","imajinn-ai")),n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"800px"},icon:(0,i.createElement)(o.Icon,{icon:(0,i.createElement)(o.Icon,{icon:w})}),title:(0,a.__)("License / Usage Restrictions","imajinn-ai")}),(0,i.createElement)("p",null,"CreativeML Open RAIL-M dated August 22, 2022"),(0,i.createElement)("p",null,"Section I: PREAMBLE"),(0,i.createElement)("p",null,"Multimodal generative models are being widely adopted and used, and have the potential to transform the way artists, among other individuals, conceive and benefit from AI or ML technologies as a tool for content creation."),(0,i.createElement)("p",null,"Notwithstanding the current and potential benefits that these artifacts can bring to society at large, there are also concerns about potential misuses of them, either due to their technical limitations or ethical considerations."),(0,i.createElement)("p",null,"In short, this license strives for both the open and responsible downstream use of the accompanying model. When it comes to the open character, we took inspiration from open source permissive licenses regarding the grant of IP rights. Referring to the downstream responsible use, we added use-based restrictions not permitting the use of the Model in very specific scenarios, in order for the licensor to be able to enforce the license in case potential misuses of the Model may occur. At the same time, we strive to promote open and responsible research on generative models for art and content generation."),(0,i.createElement)("p",null,"Even though downstream derivative versions of the model could be released under different licensing terms, the latter will always have to include - at minimum - the same use-based restrictions as the ones in the original license (this license). We believe in the intersection between open and responsible AI development; thus, this License aims to strike a balance between both in order to enable responsible open-science in the field of AI."),(0,i.createElement)("p",null,"This License governs the use of the model (and its derivatives) and is informed by the model card associated with the model."),(0,i.createElement)("p",null,"NOW THEREFORE, You and Licensor agree as follows:"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,(0,i.createElement)("p",null,"Definitions")),(0,i.createElement)("li",null,(0,i.createElement)("p",null,'"License" means the terms and conditions for use, reproduction, and Distribution as defined in this document.')),(0,i.createElement)("li",null,'"Data" means a collection of information and/or content extracted from the dataset used with the Model, including to train, pretrain, or otherwise evaluate the Model. The Data is not licensed under this License.'),(0,i.createElement)("li",null,'"Output" means the results of operating a Model as embodied in informational content resulting therefrom.'),(0,i.createElement)("li",null,'"Model" means any accompanying machine-learning based assemblies (including checkpoints), consisting of learnt weights, parameters (including optimizer states), corresponding to the model architecture as embodied in the Complementary Material, that have been trained or tuned, in whole or in part on the Data, using the Complementary Material.'),(0,i.createElement)("li",null,'"Derivatives of the Model" means all modifications to the Model, works based on the Model, or any other model which is created or initialized by transfer of patterns of the weights, parameters, activations or output of the Model, to the other model, in order to cause the other model to perform similarly to the Model, including - but not limited to - distillation methods entailing the use of intermediate data representations or methods based on the generation of synthetic data by the Model for training the other model.'),(0,i.createElement)("li",null,'"Complementary Material" means the accompanying source code and scripts used to define, run, load, benchmark or evaluate the Model, and used to prepare data for training or evaluation, if any. This includes any accompanying documentation, tutorials, examples, etc, if any.'),(0,i.createElement)("li",null,'"Distribution" means any transmission, reproduction, publication or other sharing of the Model or Derivatives of the Model to a third party, including providing the Model as a hosted service made available by electronic or other remote means - e.g. API-based or web access.'),(0,i.createElement)("li",null,'"Licensor" means the copyright owner or entity authorized by the copyright owner that is granting the License, including the persons or entities that may have rights in the Model and/or distributing the Model.'),(0,i.createElement)("li",null,'"You" (or "Your") means an individual or Legal Entity exercising permissions granted by this License and/or making use of the Model for whichever purpose and in any field of use, including usage of the Model in an end-use application - e.g. chatbot, translator, image generator.'),(0,i.createElement)("li",null,'"Third Parties" means individuals or legal entities that are not under common control with Licensor or You.'),(0,i.createElement)("li",null,'"Contribution" means any work of authorship, including the original version of the Model and any modifications or additions to that Model or Derivatives of the Model thereof, that is intentionally submitted to Licensor for inclusion in the Model by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Model, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."'),(0,i.createElement)("li",null,'"Contributor" means Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Model.')),(0,i.createElement)("p",null,"Section II: INTELLECTUAL PROPERTY RIGHTS"),(0,i.createElement)("p",null,"Both copyright and patent grants apply to the Model, Derivatives of the Model and Complementary Material. The Model and Derivatives of the Model are subject to additional terms as described in Section III."),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare, publicly display, publicly perform, sublicense, and distribute the Complementary Material, the Model, and Derivatives of the Model."),(0,i.createElement)("li",null,"Grant of Patent License. Subject to the terms and conditions of this License and where and as applicable, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this paragraph) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Model and the Complementary Material, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Model to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Model and/or Complementary Material or a Contribution incorporated within the Model and/or Complementary Material constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for the Model and/or Work shall terminate as of the date such litigation is asserted or filed.")),(0,i.createElement)("p",null,"Section III: CONDITIONS OF USAGE, DISTRIBUTION AND REDISTRIBUTION"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Distribution and Redistribution. You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications, provided that You meet the following conditions: Use-based restrictions as referenced in paragraph 5 MUST be included as an enforceable provision by You in any type of legal agreement (e.g. a license) governing the use and/or distribution of the Model or Derivatives of the Model, and You shall give notice to subsequent users You Distribute to, that the Model or Derivatives of the Model are subject to paragraph 5. This provision does not apply to the use of Complementary Material. You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License; You must cause any modified files to carry prominent notices stating that You changed the files; You must retain all copyright, patent, trademark, and attribution notices excluding those notices that do not pertain to any part of the Model, Derivatives of the Model. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions - respecting paragraph 4.a. - for use, reproduction, or Distribution of Your modifications, or for any such Derivatives of the Model as a whole, provided Your use, reproduction, and Distribution of the Model otherwise complies with the conditions stated in this License."),(0,i.createElement)("li",null,"Use-based restrictions. The restrictions set forth in Attachment A are considered Use-based restrictions. Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses. You may use the Model subject to this License, including only for lawful purposes and in accordance with the License. Use may include creating any content with, finetuning, updating, running, training, evaluating and/or reparametrizing the Model. You shall require all of Your users who use the Model or a Derivative of the Model to comply with the terms of this paragraph (paragraph 5)."),(0,i.createElement)("li",null,"The Output You Generate. Except as set forth herein, Licensor claims no rights in the Output You generate using the Model. You are accountable for the Output you generate and its subsequent uses. No use of the output can contravene any provision as stated in the License.")),(0,i.createElement)("p",null,"Section IV: OTHER PROVISIONS"),(0,i.createElement)("ol",null,(0,i.createElement)("li",null,"Updates and Runtime Restrictions. To the maximum extent permitted by law, Licensor reserves the right to restrict (remotely or otherwise) usage of the Model in violation of this License, update the Model through electronic means, or modify the Output of the Model based on updates. You shall undertake reasonable efforts to use the latest version of the Model."),(0,i.createElement)("li",null,"Trademarks and related. Nothing in this License permits You to make use of Licensors’ trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between the parties; and any rights not expressly granted herein are reserved by the Licensors."),(0,i.createElement)("li",null,'Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Model and the Complementary Material (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Model, Derivatives of the Model, and the Complementary Material and assume any risks associated with Your exercise of permissions under this License.'),(0,i.createElement)("li",null,"Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Model and the Complementary Material (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages."),(0,i.createElement)("li",null,"Accepting Warranty or Additional Liability. While redistributing the Model, Derivatives of the Model and the Complementary Material thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability."),(0,i.createElement)("li",null,"If any provision of this License is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.")),(0,i.createElement)("p",null,"END OF TERMS AND CONDITIONS"),(0,i.createElement)("p",null,"Attachment A"),(0,i.createElement)("p",null,"Use Restrictions"),(0,i.createElement)("p",null,"You agree not to use the Model or Derivatives of the Model:"),(0,i.createElement)("ul",null,(0,i.createElement)("li",null,"In any way that violates any applicable national, federal, state, local or international law or regulation;"),(0,i.createElement)("li",null,"For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;"),(0,i.createElement)("li",null,"To generate or disseminate verifiably false information and/or content with the purpose of harming others;"),(0,i.createElement)("li",null,"To generate or disseminate personal identifiable information that can be used to harm an individual;"),(0,i.createElement)("li",null,"To defame, disparage or otherwise harass others;"),(0,i.createElement)("li",null,"For fully automated decision making that adversely impacts an individual’s legal rights or otherwise creates or modifies a binding, enforceable obligation;"),(0,i.createElement)("li",null,"For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;"),(0,i.createElement)("li",null,"To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;"),(0,i.createElement)("li",null,"For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories;"),(0,i.createElement)("li",null,"To provide medical advice and medical results interpretation;"),(0,i.createElement)("li",null,"To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a.__)("Close","imajinn-ai"))))}var k=n.p+"images/imajinn-demo.6ce7fccc.jpg";function C(e){const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(null),[s,c]=(0,i.useState)(null),[u,m]=(0,i.useState)(IMAJINN.email),[d,h]=(0,i.useState)(""),[p,g]=(0,i.useState)(!1),[f,y]=(0,i.useState)(!1);if(e.isConnected)return null;const v=e=>e.target.select();return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("img",{src:k,alt:(0,a.__)("Example images generated by Imajinn AI","imajinn-ai"),style:{width:"100%"}}),(0,i.createElement)("p",null,(0,a.__)("We hope you are excited to turn your imagination into creative media for your WordPress site. To get started please create a free account or login with your existing Infinite Uploads/Imajinn credentials and we'll connect your site to our cloud.","imajinn-ai")),(0,i.createElement)((()=>r?(0,i.createElement)(o.Notice,{status:"warning"},(0,i.createElement)(o.__experimentalText,null,r,"incorrect_password"===s&&(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/wp-login.php?action=lostpassword",target:"_blank"},(0,a.__)("Reset Password","imajinn-ai")))):null),null),(0,i.createElement)(o.__experimentalHeading,{as:"label"},(0,a.__)("Register / Login","imajinn-ai")),(0,i.createElement)(o.Flex,{align:"bottom",wrap:"true",className:"connect-wrapper"},(0,i.createElement)(o.FlexItem,null,(0,i.createElement)(o.TextControl,{label:(0,a.__)("Email","imajinn-ai"),type:"email",value:u,onFocus:v,onChange:e=>m(e),help:(0,a.__)("You'll need a valid email to enable your credits.","imajinn-ai")}),(0,i.createElement)(o.TextControl,{label:(0,a.__)("Password","imajinn-ai"),type:"password",autoComplete:"off",value:d,onFocus:v,onChange:e=>h(e)})),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)(o.CheckboxControl,{label:(0,a.__)("I agree to the Terms of Service and Usage Restrictions:","imajinn-ai"),checked:f,value:"1",onChange:e=>y(e)}),(0,i.createElement)("div",{className:"license-links"},(0,i.createElement)(j,{buttonLabel:(0,a.__)("Usage Restrictions","imajinn-ai")}),(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/terms-of-service/",target:"_blank"},(0,a.__)("Terms of Service","imajinn-ai")),(0,i.createElement)(o.ExternalLink,{href:"https://infiniteuploads.com/privacy/",target:"_blank"},(0,a.__)("Privacy Policy","imajinn-ai"))),(0,i.createElement)(o.CheckboxControl,{label:(0,a.__)("Notify me about usage tips & new features (unsubscribe anytime)","imajinn-ai"),checked:p,value:"1",onChange:e=>g(e)})),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((()=>t?(0,i.createElement)(o.Button,{className:"connect-button",disabled:!0},(0,i.createElement)(o.Spinner,null)):(0,i.createElement)(o.Button,{className:"connect-button",variant:"primary",disabled:t,onClick:()=>{n(!0),l(null),fetch(`${ajaxurl}?action=imajinn-connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u,password:d,signup_tos:f,signup_newsletter:p,nonce:IMAJINN.nonce})}).then((e=>e.json())).then((t=>{console.log(t),t.success?(e.setIsConnected(!0),IMAJINN.connected=!0,e.setCredits(t.data.remaining_credits)):(n(!1),c(t.data[0].code),l(t.data[0].message))})).catch((e=>{n(!1),l(e)}))}},(0,a.__)("Connect","imajinn-ai"))),null))))}var M={styles:[{id:"photography, photorealistic, DSLR, canon50",name:(0,a.__)("Photography","imajinn-ai"),children:[{id:"photography, photo realistic, DSLR, canon50",name:(0,a.__)("Realistic","imajinn-ai")},{id:"Portrait photograph, bokeh, dof, canon50",name:(0,a.__)("Portrait","imajinn-ai")},{id:"polaroid photograph",name:(0,a.__)("Polaroid","imajinn-ai")},{id:"war photography, WWI photograph, WWII photograph",name:(0,a.__)("War","imajinn-ai")},{id:"Wildlife Photography, national geographic photo, zoom",name:(0,a.__)("Wildlife","imajinn-ai")},{id:"Photojournalism, award winning",name:(0,a.__)("Photojournalism","imajinn-ai")},{id:"macro photograph",name:(0,a.__)("Macro","imajinn-ai")},{id:"long exposure, photograph, realistic",name:(0,a.__)("Long Exposure","imajinn-ai")},{id:"fish eye lense, wide-angle",name:(0,a.__)("Fish Eye","imajinn-ai")}]},{id:"painting, digital art, trending on artstation",name:(0,a.__)("Painting","imajinn-ai"),children:[{id:"digital art, trending on artstation, hd",name:(0,a.__)("Digital Art","imajinn-ai")},{id:"oil painting, award winning",name:(0,a.__)("Oil Painting","imajinn-ai")},{id:"watercolor painting",name:(0,a.__)("Watercolor","imajinn-ai")},{id:"acrylic painting, award winning art, trending",name:(0,a.__)("Acrylic","imajinn-ai")},{id:"airbrush art",name:(0,a.__)("Airbrushed","imajinn-ai")},{id:"comic, comic book",name:(0,a.__)("Comic Book","imajinn-ai")},{id:"schematic blueprint",name:(0,a.__)("Blueprint","imajinn-ai")},{id:"made up of ink dots, artistic drawing, trending on artstation",name:(0,a.__)("Ink Dot","imajinn-ai")}]},{id:"artistic drawing, trending on artstation",name:(0,a.__)("Drawing","imajinn-ai"),children:[{id:"illustration, trending on artstation",name:(0,a.__)("Illustration","imajinn-ai")},{id:"cyberpunk, trending on artstation",name:(0,a.__)("Cyberpunk","imajinn-ai")},{id:"pencil sketch, drawing, trending on artstation",name:(0,a.__)("Pencil","imajinn-ai")},{id:"drawn in blue biro pen, artistic drawing, trending on artstation",name:(0,a.__)("Pen","imajinn-ai")},{id:"Ink dripping drawing, trending on artstation",name:(0,a.__)("Ink","imajinn-ai")},{id:"caligraphy",name:(0,a.__)("Caligraphy","imajinn-ai")},{id:"charcoal shaded, artistic drawing, trending on artstation",name:(0,a.__)("Charcoal","imajinn-ai")},{id:"cartoon",name:(0,a.__)("Cartoon","imajinn-ai")},{id:"comic, comic book",name:(0,a.__)("Comic Book","imajinn-ai")},{id:"schematic blueprint",name:(0,a.__)("Blueprint","imajinn-ai")},{id:"technical sketch",name:(0,a.__)("Technical Sketch","imajinn-ai")},{id:"made up of ink dots, artistic drawing, trending on artstation",name:(0,a.__)("Ink Dot","imajinn-ai")},{id:"line art",name:(0,a.__)("Line Art","imajinn-ai")},{id:"crayon drawing",name:(0,a.__)("Crayon","imajinn-ai")},{id:"pastel drawing, artistic",name:(0,a.__)("Pastel","imajinn-ai")},{id:"chalkboard drawing",name:(0,a.__)("Chalkboard","imajinn-ai")}]},{id:"animation",name:(0,a.__)("Animation","imajinn-ai"),children:[{id:"vintage disney animation",name:(0,a.__)("Vintage Disney","imajinn-ai")},{id:"Rendered by octane, disney animation studios",name:(0,a.__)("Disney Animation","imajinn-ai")},{id:"simpsons style animation",name:(0,a.__)("Simpsons","imajinn-ai")},{id:"anime style, rhads, Bruce Pennington, Studio Ghibli, tim hildebrandt, trending on artstation",name:(0,a.__)("Anime","imajinn-ai")},{id:"pixar 3D animation",name:(0,a.__)("Pixar","imajinn-ai")}]},{id:"unreal engine, 3d render, Rendered by octane",name:(0,a.__)("Screen","imajinn-ai"),children:[{id:"Unreal Engine, Cinema 4D",name:(0,a.__)("Video Game HD","imajinn-ai")},{id:"animal crossing, mario, nintendo, pokemon",name:(0,a.__)("Nintendo","imajinn-ai")},{id:"3D render, composite",name:(0,a.__)("3D Render","imajinn-ai")},{id:"8bit graphics",name:(0,a.__)("8bit","imajinn-ai")},{id:"emoji",name:(0,a.__)("Emoji","imajinn-ai")},{id:"low poly ps1 graphics",name:(0,a.__)("Low Poly","imajinn-ai")},{id:"pixel art",name:(0,a.__)("Pixel Art","imajinn-ai")},{id:"ASCII art",name:(0,a.__)("ASCII","imajinn-ai")}]},{id:"realistic",name:(0,a.__)("Real Life Materials","imajinn-ai"),children:[{children:[{id:"marble statue",name:(0,a.__)("Marble","imajinn-ai")},{id:"stone statue",name:(0,a.__)("stone","imajinn-ai")},{id:"statue carved from wax",name:(0,a.__)("Wax","imajinn-ai")}],id:"statue",name:(0,a.__)("Statue","imajinn-ai")},{id:"origami paper folding",name:(0,a.__)("Origami","imajinn-ai")},{id:"paper mache art",name:(0,a.__)("Paper Mache","imajinn-ai")},{id:"paper cutout art",name:(0,a.__)("Paper Cutout","imajinn-ai")},{id:"graffiti street art",name:(0,a.__)("Graffiti","imajinn-ai")},{id:"halftone print",name:(0,a.__)("Halftone","imajinn-ai")},{id:"cross stitch art",name:(0,a.__)("Cross Stitch","imajinn-ai")},{id:"stained glass",name:(0,a.__)("Stained Glass","imajinn-ai")},{id:"made of crystals",name:(0,a.__)("Crystal","imajinn-ai")},{id:"made of flowers",name:(0,a.__)("Flowery","imajinn-ai")}]}],artists:[{value:"",label:(0,a.__)("No Artist","imajinn-ai")},{value:"by Albert Bierstadt",label:(0,a.__)("Albert Bierstadt","imajinn-ai")},{value:"by Andy Warhol",label:(0,a.__)("Andy Warhol","imajinn-ai")},{value:"by Asaf Hanuka",label:(0,a.__)("Asaf Hanuka","imajinn-ai")},{value:"by Aubrey Beardsley",label:(0,a.__)("Aubrey Beardsley","imajinn-ai")},{value:"by Claude Monet",label:(0,a.__)("Claude Monet","imajinn-ai")},{value:"by Diego Rivera",label:(0,a.__)("Diego Rivera","imajinn-ai")},{value:"by Frida Kahlo",label:(0,a.__)("Frida Kahlo","imajinn-ai")},{value:"by Greg Rutkowski",label:(0,a.__)("Greg Rutkowski","imajinn-ai")},{value:"by Hayao Miyazaki",label:(0,a.__)("Hayao Miyazaki","imajinn-ai")},{value:"by Hieronymus Bosch",label:(0,a.__)("Hieronymus Bosch","imajinn-ai")},{value:"by Jackson Pollock",label:(0,a.__)("Jackson Pollock","imajinn-ai")},{value:"by Leonardo da Vinci",label:(0,a.__)("Leonardo da Vinci","imajinn-ai")},{value:"by Michelangelo",label:(0,a.__)("Michelangelo","imajinn-ai")},{value:"by Pablo Picasso",label:(0,a.__)("Pablo Picasso","imajinn-ai")},{value:"by Salvador Dali",label:(0,a.__)("Salvador Dali","imajinn-ai")},{value:"by artgerm, art germ",label:(0,a.__)("Stanley Artgerm","imajinn-ai")},{value:"by Vincent van Gogh",label:(0,a.__)("Vincent van Gogh","imajinn-ai")}],modifiers:[{value:"",label:(0,a.__)("No Modifier","imajinn-ai")},{value:"in the style of steampunk",label:(0,a.__)("Steampunk","imajinn-ai")},{value:"synthwave",label:(0,a.__)("Synthwave","imajinn-ai")},{value:"in the style of cyberpunk",label:(0,a.__)("Cyberpunk","imajinn-ai")},{value:"insanely detailed and intricate, hypermaximalist, elegant, ornate, hyper realistic, super detailed",label:(0,a.__)("Detailed & Intricate","imajinn-ai")},{value:"n a symbolic and meaningful style, insanely detailed and intricate, hypermaximalist, elegant, ornate, hyper realistic, super detailed",label:(0,a.__)("Symbolic & Meaningful","imajinn-ai")},{value:"Cinematic Lighting",label:(0,a.__)("Cinematic Lighting","imajinn-ai")},{value:"Contre-Jour",label:(0,a.__)("Contre-Jour","imajinn-ai")},{value:"futuristic",label:(0,a.__)("Futuristic","imajinn-ai")},{value:"black and white",label:(0,a.__)("Black & White","imajinn-ai")},{value:"technicolor",label:(0,a.__)("Technicolor","imajinn-ai")},{value:"warm color palette",label:(0,a.__)("Warm","imajinn-ai")},{value:"neon",label:(0,a.__)("Neon","imajinn-ai")},{value:"colorful",label:(0,a.__)("Colorful","imajinn-ai")}]};(0,e.registerBlockType)(v,{edit:function(){const[e,n]=(0,i.useState)(IMAJINN.connected),[l,w]=(0,i.useState)(!1),[_,k]=(0,i.useState)(null),[I,S]=(0,i.useState)(null),[A,L]=(0,i.useState)([]),[N,T]=(0,i.useState)(IMAJINN.history),[P,B]=(0,i.useState)(null),[D,R]=(0,i.useState)(0),[O,F]=(0,i.useState)(""),[Y,z]=(0,i.useState)(""),[V,G]=(0,i.useState)("1:1"),[W,J]=(0,i.useState)(V),[H,U]=(0,i.useState)(IMAJINN.remaining_credits),[q,Z]=(0,i.useState)(!1),[$,K]=(0,i.useState)(""),[Q,X]=(0,i.useState)(""),[ee,te]=(0,i.useState)(""),[ne,ie]=(0,i.useState)([]),[ae,re]=(0,i.useState)([]);(0,i.useEffect)((()=>{IMAJINN.remaining_credits=H,H>0&&Z(!1)}),[H]),(0,i.useEffect)((()=>{IMAJINN.history=N}),[N]),(0,i.useEffect)((()=>{z([O,$,Q,ee].filter(Boolean).join(", "))}),[O,$,Q,ee]);const oe=(0,r.useBlockProps)(),le=(e,t)=>{if(H<=0&&ce(),H-1<=0)return Z(!0),!1;const n=e||null,i=t||V;S(null),L([]),re([]),ie([]),J(i),w(!0),k(null),R(0),fetch(`${ajaxurl}?action=imajinn-start-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:Y,ratio:i,num_variations:4,init_image:n,nonce:IMAJINN.nonce})}).then((e=>e.json())).then((e=>{e.success?(S(e.data.job_id),B(e.data.status),U(e.data.remaining_credits),R(e.data.progress),se(e.data.job_id)):(w(!1),S(null),B(null),k(e.data[0].message))})).catch((e=>{w(!1),S(null),B(null),k(e)}))},se=async e=>{if(!e)return w(!1),S(null),!1;setTimeout((async()=>{const t=await fetch(`${ajaxurl}?action=imajinn-check-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({job_id:e,nonce:IMAJINN.nonce})}),n=await t.json();n.success?(B(n.data.status),R(n.data.progress),U(n.data.remaining_credits),"succeeded"===n.data.status?(L(n.data.generations),T((e=>[{prompt:Y,ratio:V,generations:n.data.generations},...e]))):"failed"===n.data.status&&(k(n.data.error),B(null),w(!1),S(null)),"starting"===n.data.status||"processing"===n.data.status?se(e):(B(null),w(!1),S(null))):(B(null),w(!1),S(null),k(n.data[0].message))}),4e3)},ce=async()=>{const e=await fetch(`${ajaxurl}?action=imajinn-refresh`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nonce:IMAJINN.nonce})}),t=await e.json();t.success?U(t.data.remaining_credits):k(t.data[0].message)},ue=async e=>{let t=A[e].jpg;const n=await fetch(`${ajaxurl}?action=imajinn-save-image`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t,prompt:Y,post_id:wp.data.select("core/editor").getCurrentPostId(),nonce:IMAJINN.nonce})}),i=await n.json();return!!i.success&&(ie((t=>[...t,{index:e,data:i.data}])),wp.data.dispatch("core/notices").createNotice("success",(0,a.__)("Image saved to media library.","imajinn-ai"),{type:"snackbar",isDismissible:!0,actions:[]}),i.data)},me=e=>{let t=A[e.genindex].jpg;return(0,i.createElement)(o.Button,{icon:u,label:(0,a.__)("Generate Variations","imajinn-ai"),onClick:()=>{G(W),le(t,W)}})},de=e=>{const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{ae.some((t=>t.index===e.genindex))?(l(!0),n(!1)):(l(!1),n(!1))}),[ae]),t?(0,i.createElement)(o.Button,{disabled:!0,icon:(0,i.createElement)(o.Spinner,null),label:(0,a.__)("Repairing","imajinn-ai")}):(0,i.createElement)(o.Button,{disabled:r,icon:m,label:(0,a.__)("Face Repair","imajinn-ai"),onClick:async()=>{n(!0),await(async e=>{let t=A[e].jpg;const n=await fetch(`${ajaxurl}?action=imajinn-face-repair`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image:t,nonce:IMAJINN.nonce})}),i=await n.json();return!!i.success&&(re((t=>[...t,{index:e}])),L((t=>(t[e]=i.data.image,[...t]))),wp.data.dispatch("core/notices").createNotice("success",(0,a.__)("Face repair completed.","imajinn-ai"),{type:"snackbar",isDismissible:!0,actions:[]}),i.data)})(e.genindex)||n(!1)}})},he=e=>{const[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{ne.some((t=>t.index===e.genindex))?(l(!0),n(!1)):(l(!1),n(!1))}),[ne]),r?(0,i.createElement)(o.Button,{disabled:!0,icon:d},(0,a.__)("Saved","imajinn-ai")):t?(0,i.createElement)(o.Button,{disabled:!0},(0,i.createElement)(o.Spinner,null)," ",(0,a.__)("Saving","imajinn-ai")):(0,i.createElement)(o.Button,{variant:IMAJINN.custom_editor?"primary":"secondary",disabled:t,icon:h,onClick:async()=>{n(!0),await ue(e.genindex)||n(!1)}},(0,a.__)("Save","imajinn-ai"))},pe=e=>{const[t,n]=(0,i.useState)(!1);return IMAJINN.custom_editor?null:t?(0,i.createElement)(o.Button,{disabled:!0},(0,i.createElement)(o.Spinner,null)):(0,i.createElement)(o.Button,{variant:"primary",className:"imajinn-image-insert",disabled:t,icon:p,onClick:async()=>{n(!0),await(async e=>{let t=!1;if(t=ne.some((t=>t.index===e))?ne.find((t=>t.index===e)).data:await ue(e),t){const e=wp.data.select("core/block-editor").getBlocks().map((function(e){return"imajinn-ai/text2image"==e.name})).indexOf(!0),n=wp.blocks.createBlock("core/image",{id:t.attachment_id,url:t.url,width:t.width,height:t.height,sizeSlug:t.size,alt:Y,title:Y});return wp.data.dispatch("core/block-editor").insertBlocks(n,e),!0}return!1})(e.genindex)||n(!1)}},(0,a.__)("Insert","imajinn-ai"))},ge=e=>{let{...t}=e;return(0,i.createElement)(o.CardFooter,null,(0,i.createElement)(o.ButtonGroup,{className:"imajinn-image-actions"},(0,i.createElement)(o.Button,{href:`${ajaxurl}?action=imajinn-tweet&image=${t.src}`,target:"_blank",icon:f,label:(0,a.__)("Share on Twitter","imajinn-ai")}),(0,i.createElement)(me,t),(0,i.createElement)(de,t)),(0,i.createElement)(o.ButtonGroup,null,(0,i.createElement)(he,t),(0,i.createElement)(pe,t)))},fe=e=>{let{...n}=e;return(0,i.createElement)(o.Card,null,(0,i.createElement)(o.CardMedia,{style:{width:n.width,height:n.height}},(0,i.createElement)("img",t({className:"generation-zoom",alt:n.alt||n.label},n))),(0,i.createElement)(ge,n))},ye=A.length?"":v.description;return(0,i.createElement)("figure",oe,(0,i.createElement)((t=>{const[n,l]=(0,i.useState)(!1),[s,c]=(0,i.useState)("refreshing-button");return(0,i.useEffect)((()=>{c(n?"refreshing-button is-refreshing":"refreshing-button")}),[n]),(0,i.createElement)(r.BlockControls,null,(0,i.createElement)(o.Toolbar,{label:(0,a.__)("Imajinn AI","imajinn-ai"),className:"imajinn-toolbar"},(0,i.createElement)(o.ToolbarGroup,null,e&&!1!==H&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:"credit-label"},(0,a.__)("Credits:","imajinn-ai")),(0,i.createElement)("div",{className:"credits"},H),(0,i.createElement)(o.ToolbarButton,{className:s,disabled:n,icon:(0,i.createElement)(o.Dashicon,{icon:"update"}),label:(0,a.__)("Refresh count","imajinn-ai"),onClick:async()=>{l(!0),await ce(),l(!1)}})),(0,i.createElement)(x,null))))}),null),(0,i.createElement)((t=>{if(!e)return null;if(t.history<=0)return null;const n=t.history.map(((e,t)=>(0,i.createElement)(o.PanelBody,{key:t},(0,i.createElement)("h2",{className:"components-panel__body-title"},e.generations.map(((e,t)=>(0,i.createElement)("img",{key:t,src:e.thumbnail,alt:(0,a.sprintf)((0,a.__)("Result %d","imajinn-ai"),(t+1).toString())}))),(0,i.createElement)(o.Button,{variant:"secondary",label:(0,a.__)("Load prompt results","imajinn-ai"),onClick:()=>{F(e.prompt),L(e.generations),G(e.ratio),J(e.ratio),K(""),X(""),te(""),ie([]),re([])}},(0,a.__)("Load","imajinn-ai"))),(0,i.createElement)(o.PanelRow,null,(0,i.createElement)(o.__experimentalText,{numberOfLines:2,truncate:!0},e.prompt)))));return(0,i.createElement)(r.InspectorControls,{key:"setting"},(0,i.createElement)(o.Panel,{header:(0,a.__)("Generation History","imajinn-ai"),className:"imajinn-history"},n))}),{history:N}),(0,i.createElement)(o.Placeholder,{icon:IMAJINN.custom_editor?null:b.mC,instructions:ye,label:IMAJINN.custom_editor?null:(0,a.__)("AI Text-to-Image Generator","imajinn-ai")},!e&&(0,i.createElement)(C,{setCredits:U,isConnected:e,setIsConnected:n}),e&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)((()=>_?(0,i.createElement)(o.Notice,{status:"warning"},(0,i.createElement)(o.__experimentalText,null,_)):null),null),(0,i.createElement)((()=>{const e="processing"===P?(0,a.sprintf)((0,a.__)("Generating %s%%","imajinn-ai"),D):(0,a.__)("Queued","imajinn-ai");return l?(0,i.createElement)("div",{className:"imajinn-loading"},(0,i.createElement)(b.ZZ,null),(0,i.createElement)("div",null,(0,i.createElement)(o.__experimentalText,null,e),(0,i.createElement)(o.Button,{isDestructive:!0,variant:"link",onClick:()=>{(async()=>{if(!I)return k("Error: No job id"),!1;const e=await fetch(`${ajaxurl}?action=imajinn-cancel-job`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({job_id:I,nonce:IMAJINN.nonce})}),t=await e.json();t.success?(B(null),w(!1),S(null),U(t.data.remaining_credits)):k(t.data[0].message)})()}},(0,a.__)("Cancel")))):null}),null),(0,i.createElement)((e=>{let{...n}=e;const[a,r]=(0,i.useState)("400px"),[l,s]=(0,i.useState)("400px");if((0,i.useEffect)((()=>{r(1===A.length?"400px":"300px"),"3:2"===W?s(1===A.length?"266px":"200px"):"2:3"===W?(s("450px"),r("300px")):s(1===A.length?"400px":"300px")}),[A,W]),0===A.length)return null;const c=A.map(((e,t)=>(0,i.createElement)(o.FlexBlock,{style:{minWidth:a,flexGrow:0},key:t.toString()},(0,i.createElement)(fe,{src:e.preview,genindex:t,width:a,height:l,label:"Result "+(t+1).toString()}))));return(0,i.createElement)(o.Flex,t({},n,{align:"center",wrap:"true",gap:0,justify:"space-around",className:"results-grid"}),c)}),null),(0,i.createElement)("div",{className:"prompt-form"},(0,i.createElement)(o.TextareaControl,{disabled:l,maxLength:450,value:O,label:(0,i.createElement)(i.Fragment,null,(0,a.__)("Prompt - Enter a detailed English description of the image you would like to generate.","imajinn-ai"),(0,i.createElement)(E,null)),className:"text-prompt",onChange:e=>F(e)}),(0,i.createElement)("div",{className:"styles-form"},(0,i.createElement)((e=>(0,i.createElement)(o.TreeSelect,{disabled:l,label:(0,a.__)("Select an image style","imajinn-ai"),noOptionLabel:(0,a.__)("No Style","imajinn-ai"),selectedId:$,onChange:e=>{K(e)},__next36pxDefaultSize:!0,tree:M.styles})),null),(0,i.createElement)((e=>(0,i.createElement)(o.SelectControl,{__next36pxDefaultSize:!0,allowReset:!0,disabled:l,label:(0,a.__)("Select an Artist style to mimic","imajinn-ai"),value:Q,onChange:e=>{X(e)},options:M.artists})),null),(0,i.createElement)((e=>(0,i.createElement)(o.SelectControl,{__next36pxDefaultSize:!0,allowReset:!0,disabled:l,label:(0,a.__)("Select a style modifier","imajinn-ai"),value:ee,onChange:e=>{te(e)},options:M.modifiers})),null),(0,i.createElement)(o.Button,{icon:g,disabled:l,label:(0,a._x)("Clear styles","clear the image style selects","imajinn-ai"),onClick:()=>{K(""),X(""),te("")}}))),(0,i.createElement)(o.Flex,{align:"top",wrap:"true"},(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((()=>{const e={"1:1":(0,a.__)("Square","imajinn-ai"),"3:2":(0,a.__)("Wide","imajinn-ai"),"2:3":(0,a.__)("Tall","imajinn-ai")}[V]+" images"+("1:1"!==V?" - "+(0,a.__)("slower to generate","imajinn-ai"):"");return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(o.__experimentalRadioGroup,{id:"imajinn-ratio",label:(0,a.__)("Select an image ratio to generate.","imajinn-ai"),defaultChecked:"1:1",disabled:l,onChange:G,checked:V},(0,i.createElement)(o.__experimentalRadio,{value:"1:1",icon:s},"1:1"),(0,i.createElement)(o.__experimentalRadio,{value:"3:2",icon:c},"3:2"),(0,i.createElement)(o.__experimentalRadio,{className:"ratio-3-2",value:"2:3",icon:c},"2:3")),(0,i.createElement)("br",null),(0,i.createElement)(o.__experimentalText,null,e))}),null)),(0,i.createElement)(o.FlexItem,null,(0,i.createElement)((e=>(0,i.createElement)(o.Button,{isPrimary:!0,disabled:l,onClick:()=>{le()}},(0,a.__)("Generate","imajinn-ai"))),null),(0,i.createElement)((e=>{const[n,r]=(0,i.useState)(e.showUpgrade),l=()=>{r(!1),e.setShowUpgrade(!1)};return(0,i.useEffect)((()=>{r(e.showUpgrade)}),[r,e]),(0,i.createElement)(i.Fragment,null,n&&(0,i.createElement)(o.Modal,t({},e,{onRequestClose:l,style:{maxWidth:"400px"},icon:(0,i.createElement)(o.Icon,{icon:y}),title:(0,a.__)("Upgrade Plan","imajinn-ai")}),(0,i.createElement)("p",null,(0,a.__)("Sorry, you are out of available image generation credits. You can get more credits by upgrading your account to one of our premium plans.","imajinn-ai")),(0,i.createElement)("div",{className:"imajinn-upgrade-modal-buttons"},(0,i.createElement)(o.Button,{variant:"primary",href:IMAJINN.checkout_url,target:"_blank"},(0,a.__)("Get More Credits","imajinn-ai")),(0,i.createElement)(o.Button,{variant:"secondary",onClick:l},(0,a._x)("Cancel","Don't upgrade now","imajinn-ai")))))}),{showUpgrade:q,setShowUpgrade:Z})))),(0,i.createElement)((()=>IMAJINN.custom_editor?null:(0,i.createElement)("div",{className:"corner-controls"},(0,i.createElement)(x,null),(0,i.createElement)(o.Button,{className:"imajinn-close-button",icon:g,label:(0,a.__)("Close Imajinn Block","imajinn-ai"),onClick:()=>{(()=>{const{removeBlocks:e}=wp.data.dispatch("core/block-editor");e(wp.data.select("core/block-editor").getSelectedBlockClientIds())})()}}))),null)),(0,i.createElement)("div",{className:"imajinn-footer"},(0,i.createElement)(o.Button,{onClick:()=>{(async()=>{const e=await fetch(`${ajaxurl}?action=imajinn-account-url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({nonce:IMAJINN.nonce})}),t=await e.json();t.success?window.open(t.data.account_url,"_blank"):k(t.data[0].message)})()}},(0,a.__)("Account","imajinn-ai")),(0,i.createElement)(j,null),(0,i.createElement)("a",{href:"https://infiniteuploads.com/support/",target:"_blank"},(0,a.__)("Support","imajinn-ai")),(0,i.createElement)("span",{className:"imajinn-credits"},(0,a._x)("Made with ","Made with love by Infinite Uploads","imajinn-ai"),(0,i.createElement)(o.Dashicon,{icon:"heart","aria-label":(0,a._x)("love","Made with love by Infinite Uploads","imajinn-ai")}),(0,a._x)(" by ","Made with love by Infinite Uploads","imajinn-ai"),(0,i.createElement)("a",{href:"https://infiniteuploads.com/",target:"_blank"},"Infinite Uploads"))))},save:function(){return null},icon:b.DT})}()}();
  • imajinn-ai/trunk/imajinn-ai.php

    r2786107 r2786215  
    55 * Requires at least: 6.0
    66 * Requires PHP:      7.0
    7  * Version:           1.1
     7 * Version:           1.2
    88 * Author:            Infinite Uploads
    99 * Author URI:        https://infiniteuploads.com
     
    2020 */
    2121
    22 define( 'IMAJINN_AI_VERSION', '1.1' );
     22define( 'IMAJINN_AI_VERSION', '1.2' );
    2323
    2424class Imajinn_AI {
     
    6060        add_action( 'wp_ajax_imajinn-check-job', [ &$this, 'ajax_check_job' ] );
    6161        add_action( 'wp_ajax_imajinn-cancel-job', [ &$this, 'ajax_cancel_job' ] );
     62        add_action( 'wp_ajax_imajinn-face-repair', [ &$this, 'ajax_face_repair' ] );
    6263        add_action( 'wp_ajax_imajinn-save-image', [ &$this, 'ajax_save_image' ] );
    6364        add_action( 'wp_ajax_imajinn-tweet', [ &$this, 'ajax_tweet_url' ] );
     
    308309        $num_variations = absint( $params['num_variations'] );
    309310
    310         $job = $this->api_request( sprintf( 'site/%s/generate', $this->get_site_id() ), compact( 'prompt', 'ratio', 'num_variations' ) );
     311        $init_image = esc_url_raw( $params['init_image'] );
     312
     313        $job = $this->api_request( sprintf( 'site/%s/generate', $this->get_site_id() ), compact( 'prompt', 'ratio', 'num_variations', 'init_image' ) );
    311314        if ( is_wp_error( $job ) ) {
    312315            wp_send_json_error( $job );
     
    391394        $params = $this->check_ajax();
    392395
    393         $params  = json_decode( file_get_contents( 'php://input' ), true );
    394396        $image   = esc_url_raw( $params['url'] );
    395397        $prompt  = sanitize_text_field( $params['prompt'] );
     
    411413        list( $url, $width, $height ) = wp_get_attachment_image_src( $attachment_id, $size );
    412414        wp_send_json_success( compact( 'attachment_id', 'url', 'width', 'height', 'size' ) );
     415    }
     416
     417    function ajax_face_repair() {
     418
     419        // check caps
     420        $params = $this->check_ajax();
     421
     422        $image   = esc_url_raw( $params['image'] );
     423
     424        //make api call to fix the image
     425        $result = $this->api_request( sprintf( 'site/%s/face_repair', $this->get_site_id() ), compact( 'image' ) );
     426        if ( is_wp_error( $result ) ) {
     427            wp_send_json_error( $result );
     428        }
     429
     430        wp_send_json_success( $result );
    413431    }
    414432
  • imajinn-ai/trunk/readme.txt

    r2786107 r2786215  
    1 === Imajinn - Magical AI Image Generation like DALL·E 2 ===
     1=== Imajinn - Magical AI Image Generation like DALL·E ===
    22
    33Requires at least: 5.9
    44Tested up to: 6.0
    5 Stable tag: 1.1
     5Stable tag: 1.2
    66Requires PHP: 7.2
    77Contributors: uglyrobot, jdailey
    8 Tags: AI, DALLE, image generator, stock photos, images, art, Diffusion
     8Tags: AI, DALLE, image generator, stock photos, art, diffusion
    99License: GPLv2
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1616**Imajinn brings the magic of AI image generation to WordPress**
    1717
    18 Imajinn is a WordPress plugin that brings the power of AI image generation to your website. Similar to tools like [DALL·E 2](https://openai.com/dall-e-2/), Imajinn lets you generate images for any topic with just your imagination. Just enter a description of what you would like to create, and Imajinn will generate a stunning image for you in seconds.
     18Imajinn is a WordPress plugin that brings the power of AI image generation to your website. Similar to tools like [DALL·E 2](https://openai.com/dall-e-2/), Midjourney, and Stable Diffusion, Imajinn lets you generate images for any topic with just your imagination. Just enter a description of what you would like to create, and Imajinn will generate a stunning image for you in seconds.
    1919
    2020Running on the latest in AI technology, Imajinn is able to generate images that are indistinguishable from real photos and art. The images are royalty-free, so you can use them on your website without worrying about licensing issues. It's like having a full-time graphic design assistant on your team that follows your every command. Your only limitation is your imagination.
    2121
    22 ### Imajinn AI - Plugin Features
     22#### Imajinn AI - Plugin Features
    2323
    2424- **Generate images with AI** - Just type in a prompt and Imajinn will generate a stunning image for you to use on your site.
     
    2828- **Style presets** - Customize your images with a variety of preset options like art medium, artist style, and more!
    2929- **History** - Easily view and jump back to previous image generations to modify and customize your prompts.
     30- **Create variations** - Generate more variations of your favorite images with a similar style and layout.
     31- **Face repair** - AI-based facial restoration to restore facial details and enhance colors with a good balance of realness and fidelity.
    3032- **Media page** - Generate images outside of the Gutenberg editor for support with any theme builder.
    3133- **Easy-connect** – No confusing API keys. Simply click to connect
     
    3436- **Unlimited users** – Any WordPress user on any site can use the Imajinn Block to generate images.
    3537- **Unlimited sites** - You can connect just one site, hundreds, or thousands...no extra license costs.
     38
     39#### Sparking the WordPress world's Imajinn-ation:
    3640
    3741★★★★★
     
    5761
    5862Once you install the plugin, simply insert the "Imajinn AI" Gutenberg block in any post or page editor, or visit the Media->Imajinn AI page. You will be prompted to create a free account or connect to your existing account right in the block, and then you can start generating images right away.
     63
     64Running an artificial intelligence neural network requires a lot of computing power. To make this possible, we run a cloud service to run the neural network. This means that you need to connect to our service before you can use the plugin. To connect to Imajinn AI, you need to have a user account. You can create one for free with just your valid email address and a password, or if you already have an account, you can log in with your Infinite Uploads/Imajinn AI email and password.
    5965
    6066== Frequently Asked Questions ==
     
    1091151. The Imajinn AI block with generated images and prompt history.
    1101161. Generating images from a prompt with style presets.
    111 1. Saving upscaled images to your WordPress media library and inserting them as an image block.
     1171. Saving high-resolution images to your WordPress media library and inserting them as an image block.
    1121181. Media admin page for generating images outside of Gutenberg.
     1191. Generate variations of an image with a similar style and layout.
     1201. AI-based facial restoration to restore facial details and enhance colors with a good balance of realness and fidelity.
    113121
    114122== Changelog ==
    115123
     1241.2 - 2022-9-16
     125----------------------------------------------------------------------
     126- New: Generate variations of an image with a similar style and layout.
     127- New: AI-based facial restoration to restore facial details and enhance colors with a good balance of realness and fidelity.
     128- Fix: Hide history when plugin is not connected.
     129
    1161301.1 - 2022-9-16
    117 ------------
    118 - Save prompt history between sessions
     131----------------------------------------------------------------------
     132- Save prompt history between sessions for easy reuse and modification.
    119133
    1201341.0.1 - 2022-9-15
    121135----------------------------------------------------------------------
    122 - ----------------------------------------------------------
    123136- Fix missing prompt history in standalone media page
    124137- Optimize size of admin css and js
Note: See TracChangeset for help on using the changeset viewer.